Preheat your oven to 400°F (200°C).
In a large baking dish, combine the diced butternut squash, feta cheese, olive oil, garlic powder, dried thyme, salt, and pepper. Toss everything together until the squash is well coated.
Bake in the preheated oven for 25-30 minutes, or until the squash is tender and the feta is golden and slightly melted.
While the squash and feta are baking, cook the pasta according to package instructions until al dente. Drain and set aside.
Once the butternut squash and feta are done, remove from the oven and add the cherry tomatoes to the baking dish. Stir in the cooked pasta and fresh spinach until everything is well combined.
Return the baking dish to the oven and bake for an additional 5-10 minutes, until the spinach is wilted and everything is heated through.
Remove from the oven, sprinkle with grated Parmesan cheese, and garnish with fresh basil if desired. Serve warm.