Step 1: Cook the Pasta
Bring a large pot of salted water to a boil. Add the pasta and cook according to package instructions until al dente. Drain, reserving about 1/2 cup of pasta water.
Step 2: Sauté the Shrimp
While the pasta is cooking, heat olive oil in a large skillet over medium-high heat.
Add the shrimp and season with salt and pepper. Cook for 2-3 minutes on each side, until the shrimp are pink and opaque. Remove the shrimp from the skillet and set aside.
Step 3: Prepare the Garlic Sauce
In the same skillet, add the minced garlic and red pepper flakes (if using). Sauté for 1 minute, or until fragrant.
Add the white wine (or chicken broth) and bring to a simmer, scraping up any browned bits from the bottom of the skillet. Let it cook for 2-3 minutes to reduce slightly.
Step 4: Combine the Pasta and Shrimp
Add the butter to the skillet and stir until melted.
Add the cooked pasta to the skillet, tossing it in the garlic sauce. If needed, add some reserved pasta water to help the sauce coat the pasta.
Return the cooked shrimp to the skillet and toss everything together.
Step 5: Finish and Serve
Stir in the grated Parmesan cheese until the pasta is well coated.
Taste and adjust seasoning with salt and pepper.
Garnish with fresh parsley before serving.