Preheat oven to 350°F.
Spread mushrooms and onions on a baking tray. Add thyme, paprika, red pepper flakes, salt, pepper and olive oil. Toss to combine.
Add dollops of cream cheese and place garlic bulbs on the tray. Drizzle garlic with olive oil and some extra salt, and cover the whole tray with foil.
Bake for 30–40 minutes, until vegetables are tender and garlic is soft.
Meanwhile, cook pasta according to package instructions, reserving some pasta water.
Add spinach to the tray while it’s hot, and squeeze in the roasted garlic once it has cooled enough to handle. Mix it together and add in your cooked pasta. Stir until creamy, adding a splash of pasta water as needed. Enjoy!
