In a large pot, bring salted water to a boil. Cook the gnocchi according to package instructions until they float to the surface. Drain and set aside.
In a large skillet, heat the olive oil over medium heat. Add the minced garlic and sauté for about 1 minute until fragrant.
Add the halved cherry tomatoes to the skillet and cook for an additional 3-4 minutes until they start to soften.
Pour in the heavy cream and stir to combine. Bring the mixture to a gentle simmer.
Stir in the fresh spinach until wilted, about 2 minutes.
Add the cooked gnocchi to the skillet along with the grated Parmesan cheese and red pepper flakes (if using). Toss gently to coat the gnocchi in the cream sauce.
Season with salt and black pepper to taste.
Remove from heat and let it sit for a minute to thicken slightly.