In a large skillet or frying pan, heat the olive oil over medium heat. Add the chopped onion, diced carrots, minced garlic, and diced celery. Cook for about 5 minutes, or until the vegetables are softened.
Add the ground lamb or beef to the skillet and cook until browned, breaking it up with a spoon as it cooks.
Pour in the red wine and simmer for a few minutes, allowing it to reduce slightly.
Stir in the tomato paste, beef or vegetable broth, Worcestershire sauce, dried thyme, bay leaves, salt, and pepper. Simmer for 10-15 minutes, or until the mixture has thickened slightly.
Stir in the frozen peas and corn, and cook for another 2-3 minutes until heated through. Adjust the seasoning if necessary.
Remove the bay leaves from the mixture.
Transfer the meat and vegetable mixture to a baking dish and spread it out evenly.
Meanwhile, prepare the mashed potato topping. In a large pot, cook the potatoes in boiling salted water until tender, about 15-20 minutes. Drain well and return the potatoes to the pot.
Add the butter and milk to the potatoes, and mash until smooth and creamy. Season with salt and pepper to taste.
Spread the mashed potato evenly over the meat and vegetable mixture in the baking dish. Sprinkle grated cheddar cheese over the potatoes.
Place the baking dish in the preheated oven and bake for 25-30 minutes, or until the mashed potato topping is golden brown and the filling is bubbling.
Remove from the oven and let it cool for a few minutes before serving.