01 - Pat the shrimp dry with paper towels and season lightly on both sides with salt and freshly ground black pepper.
02 - Heat 2 tablespoons of olive oil in a large skillet over medium-high heat. Arrange the shrimp in a single layer and sauté for 1 to 2 minutes per side until they turn pink and are just cooked through. Remove with tongs and set aside on a plate.
03 - Reduce the heat to medium. Add the remaining tablespoon of olive oil along with the minced garlic and chopped onion. Sauté for approximately 3 minutes until the onion is soft and translucent, stirring occasionally to prevent the garlic from browning.
04 - Stir in the red pepper flakes and cook for 30 seconds, allowing the spices to release their fragrance and infuse the oil.
05 - Pour in the dry white wine, using a wooden spoon to scrape up any browned bits from the bottom of the pan. Let the wine simmer for about 2 minutes until it reduces slightly.
06 - Add the crushed tomatoes and stir to combine. Bring the sauce to a gentle simmer and cook for 7 to 8 minutes, stirring occasionally, until it thickens and the flavors meld together.
07 - Return the shrimp and any accumulated juices to the skillet. Add the chopped parsley and basil if using. Toss everything together and cook for 2 to 3 minutes until the shrimp are heated through and coated in the sauce.
08 - Taste the sauce and adjust with additional salt, black pepper, or red pepper flakes according to your preference.
09 - Spoon the shrimp and sauce over cooked linguine or spaghetti. Garnish with extra fresh herbs and serve with lemon wedges on the side.