Preheat the oven to 180C Fan and set out a baking tray and 20x30cm ovenproof dish.
Tip the diced butternut squash onto a baking tray and drizzle with the olive oil. Season with salt and freshly ground black pepper and sprinkle with a pinch of dried chilli flakes. Toss to coat in the oil and seasoning, then spread in an even layer. Roast in the oven for about 30-35 minutes - or until the butternut squash has softened and started to caramelise at the edges.
Carefully spoon the cooked butternut squash into a food processor and add the ricotta. Blitz to combine. I like to keep some texture to mine, but you can continue to blend until completely smooth, if you prefer. Taste and adjust the seasoning, if needed. Set aside.
Next, make the bechamel sauce: melt the butter in a large non-stick saucepan, over a low-medium heat, until foaming. Add the flour and stir to combine. Continue to cook for a couple of minutes to ‘cook out’ the flour and remove the raw flour taste.
Gradually add the milk, whisking to remove any lumps. It should thicken as you whisk - some lumps will remain but keep whisking and they should disappear. Once most of the milk has been added, you can start to add in large additions. Continue to cook until it thickens enough to coat the back of a wooden spoon. Remove from the heat and add the grated cheese and a generous grating of fresh nutmeg. Stir until the cheese has melted. Season to taste with salt and freshly ground black pepper.
To assemble: spread ⅓ of the butternut squash mixture in the bottom of your baking dish in a smooth and even layer. Top with a layer of lasagne sheets, followed by ⅓ of the cheese sauce. Dollop over ½ of the pesto, ensuring it is evenly dolloped across the surface. Add some grated Parmesan on top. Repeat the layers - ensuring you finish with a layer of white sauce. Scatter over the torn mozzarella and sprinkle with a little more Parmesan. Bake for about 30-35 minutes or until bubbly and golden.
Leave to stand for 5 minutes before serving. Enjoy!