Preheat the oven to 340°F (170°C). Line a 30 × 30 cm (about 12 × 12-inch) rimmed baking tray with parchment paper.
Blend the cooled roasted pumpkin and shelled hazelnuts into a thick mixture with finely ground nut pieces. Stop and scrape down the sides as needed.
Melt the chocolate and butter in a microwave-safe bowl in 15–20-second bursts, stirring between each, until smooth. Let cool until warm rather than hot.
Beat the eggs and sugar until combined. Add the flour and mix briefly until no dry patches remain.
Gradually mix the warm chocolate-butter mixture into the egg mixture. Add the pumpkin-hazelnut mixture and stir until evenly combined.
Spread the batter evenly in the prepared tray. Bake for approximately 40–50 minutes, checking earlier if the batter is spread very thinly. The edges should be set, and a toothpick inserted into the center should have moist crumbs but no liquid batter.
Let cool in the tray before cutting into squares.