Place the potato chunks in a large pot and cover with cold water. Bring to a boil, add a little salt, and simmer for 15–18 minutes until fork-tender. Drain thoroughly and return the potatoes to the warm pot.
Add the butter, warm milk, sour cream, salt, and black pepper to the potatoes. Mash until creamy and smooth, then stir in the Parmesan cheese. Set aside while preparing the filling.
Heat the olive oil in a large skillet or Dutch oven over medium heat. Add the diced onion and carrots and cook for 5–6 minutes until they begin to soften. Stir in the chopped mushrooms and cook for another 5–7 minutes until their moisture has mostly evaporated.
Stir in the minced garlic, tomato paste, thyme, rosemary, salt, and black pepper. Cook for about 1 minute, allowing the tomato paste to darken slightly and the garlic to become fragrant.
Sprinkle the flour over the vegetables and stir until evenly coated. Slowly pour in the vegetable broth while stirring to prevent lumps. Add the soy sauce and vegetarian Worcestershire sauce, then simmer for 3–4 minutes until the gravy begins to thicken.
Stir in the cooked lentils and frozen peas. Simmer for another 3–4 minutes until everything is heated through and the filling has a thick, spoonable consistency. Taste and adjust the seasoning as needed.
Preheat the oven to 400°F (200°C). Transfer the vegetable and lentil filling to a 9 x 13-inch baking dish. Spread the mashed potatoes evenly over the top, making sure they reach the edges. Use a fork to create light ridges across the surface.
Bake uncovered for 20–25 minutes, until the filling bubbles around the edges and the potato topping develops golden spots. Let the shepherd's pie rest for 10 minutes before serving so the layers can settle.