01 - Preheat oven to 400°F. Lightly grease a 9x13-inch baking dish.
02 - Pat chicken breasts dry with paper towels. Drizzle both sides with olive oil and season evenly with salt and pepper. Arrange seasoned chicken in the 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 thoroughly until all ingredients are well blended and smooth.
04 - Spread the spinach-artichoke mixture evenly over the top of each chicken breast, covering the surface completely.
05 - Spoon basil pesto over the creamy spinach-artichoke topping, spreading gently in an even layer.
06 - Sprinkle shredded mozzarella cheese evenly over the pesto layer, covering each piece of chicken.
07 - Bake uncovered for 30-35 minutes, or until chicken is cooked through (internal temperature reaches 165°F) and cheese is golden brown and bubbly.
08 - Remove from oven and allow chicken to rest for 5 minutes before serving. Garnish with fresh basil leaves if desired.