In a large casserole or baking dish, add the diced onion, grated carrot, lentils, pasta, vegetable stock, plant milk, chopped tomatoes, nutritional yeast, garlic, thyme/rosemary, sun-dried tomatoes, maple syrup, and black pepper. Gently mix everything to combine. Ensure the pasta is fully submerged in the liquid for even cooking. Top with the halved cherry tomatoes and chopped basil.