Cook the Pasta
Bring a large pot of salted water to a boil. Add the spaghetti and cook according to the package instructions until al dente. Drain the pasta, reserving 1/2 cup of pasta water, and set it aside.
Cook the Shrimp
In a large skillet, heat 1 tablespoon of olive oil over medium 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.
Sauté the Mushrooms and Garlic
In the same skillet, add the remaining tablespoon of olive oil and the butter. Once the butter melts, add the sliced mushrooms and cook for 4-5 minutes until they’re softened and browned. Add the minced garlic and cook for 1-2 minutes until fragrant.
Deglaze the Pan (Optional)
If using, add the dry white wine to the pan, scraping the bottom to lift any bits of flavor stuck to the pan. Let the wine cook off for 2-3 minutes, allowing it to reduce slightly.
Make the Sauce
Add the heavy cream to the skillet and stir to combine. Let the sauce simmer for 3-4 minutes, allowing it to thicken slightly. Stir in the grated Parmesan cheese and adjust the seasoning with salt and pepper to taste. If the sauce is too thick, add a little reserved pasta water to reach your desired consistency.
Combine Pasta, Shrimp, and Sauce
Add the cooked spaghetti to the skillet and toss to coat the pasta in the creamy sauce. Add the shrimp back to the pan and gently stir to combine everything.
Serve
Garnish with freshly chopped parsley and a sprinkle of red pepper flakes for a bit of heat (optional). Serve immediately and enjoy!