Roast the Pumpkin and Chickpeas: Preheat the oven to 200°C (390°F). Slice off the top 2cm of the garlic bulb to expose the cloves. Place the garlic bulb, pumpkin pieces, and chickpeas in a baking dish. Drizzle with olive oil and season generously with garlic salt, paprika, and rosemary. Toss everything to coat evenly.
Squeeze the garlic: Roast for 20 minutes, then remove the garlic bulb and set it aside to cool for 5-10 minutes. Meanwhile, continue roasting the pumpkin. Once the garlic cools, squeeze the roasted garlic cloves on the pumpkin and chickpeas and toss evenly.
Caramelize the pumpkin: Continue roasting the pumpkin and chickpeas for another 10- 15 minutes, until the pumpkin is caramelized and the chickpeas are crispy (total 40 minutes). Keep the rosemary leaves for garnish.
Make the Brown Butter: In a large skillet, melt the butter over medium heat. Whisk constantly as the butter crackles and foams. After a few minutes, it will turn golden-brown and release a nutty aroma. Remove from heat and set aside.
Prepare the Pistachio Pesto: In a food processor, combine the pistachios, garlic, lemon zest, lemon juice, and salt. Process until the pistachios are finely ground. Add ½ can of chickpeas and pulse until blended. Taste and adjust salt if needed.
Cook the Pasta: While the pumpkin and chickpeas are roasting, cook the pasta according to the package instructions. Before draining, reserve ½ cup of the pasta water. Drain the pasta and return it to the pan.
Assemble the Pasta: Add the cooked pasta to the large skillet with the brown butter and slowly stir in the pistachio pesto. Add a splash of the reserved pasta water to loosen the sauce if needed. Toss in the roasted pumpkin, crispy chickpeas, and red pepper flakes. Mix well to combine.
Garnish and Serve: Divide the pasta between bowls. Garnish with extra chopped pistachios, fresh parsley, rosemary leaves, and a sprinkle of red pepper flakes.