Prepare the Squash
Preheat oven to 400°F. Line a baking sheet with parchment paper.
Cut spaghetti squash in half lengthwise and scoop out seeds and stringy bits.
Brush cut sides with half the olive oil. Place cut-side down on baking sheet.
Roast with Garlic
Roast squash for 20 minutes.
Lift each half and tuck one smashed garlic clove underneath. Press squash back down.
Continue roasting for 15 to 20 minutes more, until fork-tender.
Roast the Asparagus
Trim woody ends from asparagus (about 1 inch from each stalk).
Toss asparagus with remaining olive oil.
Add to baking sheet during the last 15 minutes of squash cooking time.
Roast until tender with slightly browned tips.
Make the Ricotta Mixture
In a medium bowl, combine ricotta cheese, lemon juice, and lemon zest.
Stir in fresh thyme leaves, salt, and black pepper.
Mix until creamy and uniform. Set aside at room temperature.
Toast the Pine Nuts
Place pine nuts in a dry skillet over medium heat.
Shake pan constantly for 3 to 4 minutes until golden and fragrant.
Transfer immediately to a small bowl to stop cooking.
Assemble the Dish
Let roasted squash cool for 5 minutes.
Use a fork to scrape squash flesh into strands, transferring to a large serving bowl.
Cut roasted asparagus into 2-inch pieces and add to bowl.
Spoon ricotta mixture over vegetables and toss gently to combine.
Sprinkle toasted pine nuts on top and serve immediately.