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 evenly with salt and pepper. Arrange seasoned 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 thoroughly until all ingredients are well blended and smooth.
04 - Divide the spinach-artichoke mixture evenly among the chicken breasts, spreading it in a thick layer over the top of each piece.
05 - Spoon basil pesto over the creamy spinach-artichoke topping on each chicken breast, spreading gently to create an even layer.
06 - Sprinkle shredded mozzarella cheese evenly over the tops of all chicken breasts, covering the pesto layer completely.
07 - Bake uncovered for 30-35 minutes until chicken is cooked through to an internal temperature of 165°F and cheese is melted and golden brown.
08 - Remove from oven and let the chicken rest for 5 minutes to allow juices to redistribute. Garnish with fresh basil leaves if desired before serving.