Begin by cooking the pasta according to package instructions in a large pot of salted boiling water. Once al dente, reserve 1/2 cup of pasta water, then drain and set the pasta aside.
In the same pot, heat the olive oil over medium heat. Add the minced garlic and red pepper flakes, sautéing for about 1 minute until fragrant, being careful not to burn the garlic.
Add the cherry tomatoes to the pot, cooking for 3-4 minutes until they start to soften and release their juices.
Stir in the chopped spinach and cook until wilted, about 2-3 minutes.
Reduce heat to low, then add the cooked pasta back into the pot with the spinach and tomatoes. Toss everything well, adding reserved pasta water as needed to create a light sauce.
Sprinkle in the grated Parmesan cheese, stirring until melted and incorporated. If desired, season with salt and pepper to taste.
Serve immediately, garnishing with fresh basil leaves for an extra burst of flavor.
Notes
For a vegan option, substitute Parmesan cheese with nutritional yeast.