Preheat the oven to 425°F (220°C). Cook the pasta according to package instructions. In the meantime, prepare the sauce.
Place saucepan on medium heat. Coat with olive oil, then pour in shallots and cook until they begin to soften (3-5 minutes).
Add sage and thyme, stir, and cook until fragrant.
Bring heat down to low and add the pumpkin and ricotta. Stir until well-combined.
Add milk, stir, add parmesan, stir.
Add brown sugar, cinnamon, nutmeg, salt, and pepper, stir well-blended.
Combine the sauce with cooked pasta and stir until evenly distributed.
Scoop the pasta into a baking dish or a pumpkin, like we did! Top off with mozzarella cheese.
Bake covered for 15-20 minutes (until cheese has melted).
Then broil for a quick 2-3 minutes if you want the cheese on top to brown and get toasty. Keep on eye on it while it’s broiling to make sure you don’t overdo it. Serve immediately, before it gets cold.