Preheat the oven to 375℉.
Bring a large pot of water to boil.
In a 9×13-inch baking dish, add the garlic, shallots, red pepper flakes, wine, olive oil, parsley, lemon zest, salt, pepper, and shrimp. Toss until well combined. Bake until shrimp is cooked through, about 13 minutes.
Add pasta to the boiling water with plenty of salt (about 1 tablespoon) and cook according to package directions.
Remove the shrimp from the oven and drain the pasta. Add the pasta to the baking dish with the shrimp and gently toss until coated. Add the Parmesan (if using) and toss once more. Taste and add more salt as needed.
Divide the pasta among four bowls, top with parsley, and serve with lemon wedges.