In a large pot of salted water, bring to a boil. Add the linguine and cook according to package instructions until al dente. Reserve 1 cup of pasta water, then drain the pasta and set aside.
In a large skillet, heat 2 tablespoons of olive oil over medium heat. Add the minced garlic and sauté for about 30 seconds until fragrant.
Increase the heat to medium-high, add the shrimp to the skillet, and season with salt, pepper, and red pepper flakes (if using). Cook for 2-3 minutes on each side, or until the shrimp are pink and opaque.
Add the cherry tomatoes to the skillet, cooking for another 2 minutes until they are slightly softened. Then, stir in the prepared basil pesto, and mix to combine.
Add the cooked linguine to the skillet with the shrimp and pesto mixture. If the pasta looks dry, gradually add in some reserved pasta water until the desired creaminess is achieved.
Remove the skillet from heat, and serve the pasta immediately topped with grated Parmesan cheese and fresh basil leaves.
Notes
Feel free to adjust the spice level by adding more or less red pepper flakes.