Warm the olive oil in a large saucepan over medium heat.
Add the chopped garlic and cook briefly until it releases its aroma.
Toss in the orzo and mix well to coat every piece with the flavorful oil.
Pour the broth into the pan and bring everything to a rolling boil.
Introduce the broccoli pieces, then lower the heat to a gentle simmer.
Let the orzo and broccoli cook for around 10 minutes, stirring now and then until the pasta is soft and the liquid mostly evaporated.
Mix in the heavy cream, shredded Parmesan, salt, black pepper, and red pepper flakes if using.
Continue cooking for 5 more minutes until the sauce thickens to a creamy consistency and the cheese melts smoothly.