In a large pot, bring salted water to a boil. Add the orzo and cook according to package instructions until al dente. Drain and set aside.
In the same pot, heat the olive oil over medium heat. Add the minced garlic and sauté for about 1 minute, or until fragrant but not browned.
Stir in the chopped spinach and cook for 2-3 minutes until wilted.
Reduce the heat to low, then pour in the heavy cream, stirring to combine with the spinach and garlic. Allow it to simmer gently for 2-3 minutes.
Add the grated Parmesan cheese and dried basil to the pot, stirring until the cheese has melted and the sauce is creamy.
Add the cooked orzo back into the pot with the creamy spinach mixture and stir until fully coated. Season with salt, pepper, and red pepper flakes if desired.
Serve hot, garnished with extra Parmesan cheese and a sprinkle of fresh herbs, if desired.