Preheat the oven to 200°C.
Drain and rinse the beans.
Carefully chop ½ the pumpkin into thin wedges that are approx ½ cm thick and the other half slice into small 1cm cubes.
Quarter the cherry tomatoes and finely slice the scallions.
In a casserole dish, combine the beans, pumpkin, tomatoes, scallions, sundried tomato pesto, and oat milk along with a generous pinch of salt. Mix until creamy and well combined. Taste and season.
Top with breadcrumbs ,mixed herbs, the slices pumpkin wedges, a pinch of salt, and a drizzle of olive oil.
Bake for 25 minutes until golden on top and the pumpkin is cooked all the way through.
Remove from the oven and enjoy warm, straight from the dish!