Preheat the oven to 400°F (200°C).
Cut the spaghetti squash in half lengthwise and scoop out the seeds.
Brush the inside of the squash with olive oil and season with salt and pepper.
Place the squash halves cut-side down on a baking sheet and bake for 40 minutes, or until the flesh is tender.
Remove from the oven and let cool slightly.
Use a fork to scrape the flesh, creating spaghetti-like strands.
In a skillet, heat olive oil over medium heat and sauté the minced garlic until fragrant.
Add the spaghetti squash strands to the skillet and toss to coat with garlic and oil.
Season with additional salt, pepper, and fresh herbs if using.
Serve warm, topped with grated Parmesan cheese if desired.