01 - Heat olive oil in a large skillet over medium heat. Add the chopped onion and cook, stirring occasionally, until soft and translucent, about 5 minutes.
02 - Stir in the minced garlic and crushed red pepper flakes. Sauté for 1 minute until fragrant, being careful not to burn the garlic.
03 - Pour in the dry white wine and let it simmer for 2 minutes, allowing the alcohol to evaporate and the liquid to reduce slightly.
04 - Add the crushed tomatoes, dried oregano, dried basil, salt, and black pepper. Stir to combine and simmer uncovered for 10 to 12 minutes, allowing the sauce to thicken and the flavors to meld.
05 - Add the peeled and deveined shrimp to the skillet, stirring to coat them evenly in the sauce. Cook for 3 to 4 minutes, turning once, until the shrimp are pink, curled, and just cooked through. Do not overcook.
06 - Remove the skillet from heat. Stir in the chopped fresh parsley and fresh basil if using. Taste the sauce and adjust the salt, pepper, and red pepper flakes as needed.
07 - If serving with pasta, toss cooked spaghetti or linguine with the sauce in the skillet. Transfer to serving plates and garnish with additional parsley and lemon wedges. Serve immediately while hot.