First, cut the spaghetti squash in half with a sharp knife.
Then, drizzle each half generously with oil. Wrap the cut side of the halves in foil, place them on a baking sheet, and bake them in an oven that has been preheated to 400 degrees Fahrenheit.
When the time is up, carefully remove the spaghetti squash from the oven. Let it cool down a bit before handling it.
While it cools, peel and chop the onion and garlic cloves. Also, cut up the sun-dried tomatoes.
Add the extra virgin olive oil to a large skillet and place it over a stove top set to medium heat. Then add the peeled and chopped onions and garlic to it and sauté them for about 5 minutes, stirring often so they do not burn.
Using a fork, gently scrape out the strands of spaghetti squash and add them to the skillet with the onion and garlic. Also add in the chopped sundried tomatoes, red pepper flakes, smoked paprika, and Italian seasoning and stir until all ingredients are well combined.
Remove the skillet from the stove, season it with salt and black pepper to taste, and, if opting to, garnish it with fresh parsley.