Cook the pasta in salted boiling water until al dente, then drain and set aside.
Sauté the shrimp in olive oil with red pepper flakes until pink and cooked through, then remove from the pan.
Cook the aromatics by adding shallots (or red onion) to the pan and sautéing until soft.
Deglaze the pan with white wine (or broth) and let it simmer for 2 minutes.
Add the tomatoes and cook for 5-7 minutes until the sauce thickens.
Return the shrimp to the pan, stir in the heavy cream and fresh basil, and simmer briefly.
Toss in the pasta, ensuring it’s well coated with the sauce.
Serve hot with grated Parmesan and extra basil on top.