In a large skillet, heat the olive oil over medium heat. Add the sliced mushrooms and sauté until they are golden brown, about 5-7 minutes.
Add the minced garlic to the skillet and cook for an additional 1-2 minutes until fragrant.
In a large mixing bowl, combine the cooked chicken, sautéed mushrooms and garlic, chopped spinach, thyme, salt, black pepper, and red pepper flakes (if using). Mix well to combine all ingredients.
In a separate bowl, whisk together the heavy cream, half of the mozzarella cheese, and half of the Parmesan cheese until smooth.
Pour the cream mixture over the chicken and mushroom mixture, stirring gently to ensure everything is evenly coated.
Transfer the mixture into a greased 9x13 inch baking dish.
Top with the remaining mozzarella and Parmesan cheese, spreading it evenly over the top.
Bake in the preheated oven for 25-30 minutes, or until the cheese is melted and bubbly, and the casserole is heated through.
Let it cool for a few minutes before serving, allowing the flavors to meld.
Notes
Serve in individual bowls, garnished with parsley or chives. Pair with avocado slices for a keto-friendly side.