In a large pot of boiling salted water, cook the orzo according to package instructions until al dente. Drain and set aside.
In a large skillet, heat the olive oil over medium heat. Add the minced garlic and sauté for about 30 seconds until fragrant.
Add the shrimp to the skillet, seasoning them with salt, pepper, and red pepper flakes. Cook for 2-3 minutes on one side, then flip them over and cook for another 2-3 minutes until they are pink and opaque.
Once the shrimp are cooked, add the cooked orzo, cherry tomatoes, and pesto to the skillet. Gently toss everything together until well coated and heated through, about 2 minutes.
Remove from heat and sprinkle with grated Parmesan cheese if desired. Garnish with fresh basil leaves.
Notes
Feel free to adjust the spice level by adding more or less red pepper flakes.