Roast the vegetables. Preheat the oven to 425°F. Place the squash on a rimmed baking sheet. Set the garlic and onion on a piece of foil on the same sheet. Divide the olive oil, salt and pepper between the vegetables. Turn the squash cut-side down and seal the foil around the garlic and onion. Roast for 45–55 minutes, or until the squash is easily pierced with a fork.
Blend the sauce. Let the vegetables cool slightly, then scoop the squash flesh into a blender and discard the skins. Add the roasted garlic and onion, broth, sour cream and Parmesan. Blend until smooth, adding more broth as needed for a thick but pourable sauce. Add the bouillon a little at a time, tasting before adding the full amount, since its saltiness varies by brand. If blending while warm, vent the lid according to your blender’s instructions.
Cook the pasta. While the vegetables roast, bring a large pot of salted water to a boil. Cook the shells until just al dente, following the package directions. Drain and briefly rinse under cool water to stop the cooking. Arrange on a tray so they don’t stick together.
Make the filling. In a medium bowl, mix the ricotta, mozzarella, Parmesan, basil, heavy cream, egg and salt until combined.
Fill and assemble. Spread about 1 cup of squash sauce across the bottom of a 9 × 13-inch baking dish. Fill each shell with 1–2 tablespoons of the cheese mixture and arrange in the dish. Spoon additional sauce over and around the shells, reserving any excess for another use. Sprinkle with the mozzarella and Parmesan.
Bake. Cover tightly with foil and bake at 425°F for 20 minutes. Uncover and bake for another 10–15 minutes, until the filling is hot throughout and the sauce is bubbling. For an extra golden top, broil for 1–2 minutes, watching closely.
Serve. Let rest for 5 minutes, then garnish with finely sliced fresh sage and enjoy!