Preheat your oven to 375°F (190°C). Lightly grease a 9×13-inch baking dish.
In a large mixing bowl, combine the sliced sweet potatoes, butternut squash, and carrots with olive oil, salt, and black pepper until evenly coated.
In another bowl, stir together the ricotta cheese, egg, Parmesan cheese, Italian seasoning, and minced garlic until smooth.
Spread about ½ cup of marinara sauce over the bottom of the baking dish.
Arrange three lasagna noodles over the sauce.
Spread one-third of the ricotta mixture evenly across the noodles.
Add an even layer of the sliced vegetables.
Sprinkle with a portion of the mozzarella cheese.
Repeat the layers two more times with noodles, ricotta mixture, vegetables, and mozzarella.
Finish by spreading the remaining marinara sauce over the top and covering with the remaining mozzarella cheese. Sprinkle with red pepper flakes if desired.
Cover tightly with aluminum foil.
Bake for 40 minutes.
Remove the foil and continue baking for another 15 minutes until the cheese is melted, bubbly, and lightly golden.
Allow the Layered Sweet Potato Butternut Squash Carrot Lasagna to rest for 10–15 minutes before slicing.
Garnish with chopped parsley or basil and serve warm.