Peel and seed the butternut squash, then slice it thinly, about 1/8 inch thick. Toss the slices with a drizzle of olive oil and a sprinkle of salt and pepper.
Mix the ricotta cheese, egg, grated Parmesan, dried basil, oregano, salt, and pepper in a bowl until smooth and creamy.
Combine the marinara sauce, diced tomatoes, garlic powder, onion powder, and red pepper flakes in another bowl. Stir well so all the flavors meld together.
Grease your baking dish. Start by adding a thin layer of the tomato sauce at the bottom. Then layer the squash slices, followed by the ricotta mixture, another layer of sauce, and a sprinkle of mozzarella. Repeat until you’ve used up all the ingredients, finishing with a generous cheese layer on top.
Cover the dish with foil and bake in a preheated oven at 375°F for 30 minutes. Then, remove the foil and bake for an additional 20 minutes until the cheese is bubbly and golden.
Allow the lasagna to rest for about 10 minutes before slicing. For a fresh finishing touch, sprinkle some Parmesan cheese and chopped basil on top.