01 - Preheat oven to 400°F. Lightly grease a 9x13-inch baking dish with cooking spray or a small amount of olive oil.
02 - Pat chicken breasts dry with paper towels. Drizzle both sides with olive oil and season generously with salt and 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, minced garlic, and crushed red pepper flakes. Mix until thoroughly blended and creamy.
04 - Spread the spinach-artichoke mixture evenly over each chicken breast, covering the entire surface.
05 - Spoon basil pesto over the creamy topping on each chicken breast, spreading gently in an even layer.
06 - Sprinkle shredded mozzarella cheese evenly over the top of all chicken breasts.
07 - Bake uncovered for 30 to 35 minutes, or until chicken is cooked through and reaches an internal temperature of 165°F, and the cheese is melted, golden, and bubbling.
08 - Remove from oven and let rest for 5 minutes before serving. Garnish with fresh basil leaves if desired.