Heat olive oil in a large, deep saucepan over medium heat. Add sausage links and cook until beautifully browned on all sides, about 5 minutes per side. Cover with a lid to help them cook through. Remove sausages to a plate and let cool completely.
In the same pan with the sausage drippings, add the chopped onion and cook until softened, about 5 minutes. Add the minced garlic, dried oregano, and red pepper flakes (if using) and cook for another 30 seconds until fragrant.
Pour in the red wine if using, scraping the bottom of the pan to release all the flavorful browned bits. Let reduce for 2 minutes, then add the marinara sauce and stir to combine.
Slice the cooled sausages into ½-inch rounds and add to the sauce. Bring to a gentle simmer, then reduce heat to low. Cover and simmer for about 1.5 hours, stirring occasionally, allowing the flavors to meld and deepen.
About 15 minutes before serving, bring a large pot of generously salted water to a boil. Cook the spaghetti according to package directions until al dente. Reserve ½ cup of pasta water before draining.
Add the drained spaghetti directly to the sauce, tossing to coat completely. If needed, add a splash of reserved pasta water to reach your desired consistency. Stir in the fresh chopped basil.
Serve in warm bowls topped with freshly grated Parmesan cheese and additional basil if desired.