01 - Preheat oven to 400°F. Lightly grease a 9x13-inch baking dish with cooking spray or a small amount of oil.
02 - Pat chicken breasts dry with paper towels. Drizzle both sides with olive oil and season evenly with salt and black pepper. Arrange chicken in the prepared baking dish in a single layer.
03 - In a medium bowl, combine spinach, artichoke hearts, cream cheese, sour cream, Parmesan cheese, minced garlic, and crushed red pepper flakes. Mix until thoroughly blended and smooth.
04 - Spread the spinach-artichoke mixture evenly over each chicken breast, covering the entire surface. Spoon basil pesto over the creamy layer and spread gently. Sprinkle shredded mozzarella cheese evenly over the top.
05 - Bake uncovered for 30 to 35 minutes, or until chicken is completely cooked through and reaches an internal temperature of 165°F. The cheese should be melted and golden brown.
06 - Remove from oven and let the chicken rest for 5 minutes before serving. Garnish with fresh basil leaves if desired. Serve warm with roasted vegetables or a green salad.