Preheat your oven to 350°F (180°C).
Cook the pasta in a large pot of boiling salted water according to package instructions until al dente. Drain and set aside.
In a baking dish (I used 9x13-inch (23x33 cm) but it can be larger), combine the garlic, shallots, red pepper flakes if using, smoked paprika, olive oil, melted butter, white wine, lemon zest, lemon juice, salt, pepper, parsley, and shrimp. Stir to spread evenly.
Transfer the dish to the preheated oven and bake for approximately 12 minutes, or until the shrimp turn pink and are cooked through. Be careful not to overcook the shrimp.
Once the shrimp are ready, remove the baking dish from the oven and stir in the drained spaghetti, making sure it's well coated with the sauce.
Sprinkle over the grated parmesan cheese, then gently mix so it melts.
Serve immediately, garnishing with extra parmesan or parsley if desired.