Start by warming a wide, deep 12-inch skillet or Dutch oven over medium-high heat. Once it's hot, add the olive oil and the sliced leeks. Reduce the heat to medium and continue cooking, stirring constantly, until the leeks have softened and acquired a gentle golden hue, which should take about 5 minutes.
Next, incorporate the chopped garlic and the assorted mushrooms. Allow them to cook without stirring for approximately 2 minutes, then give them a good stir and continue cooking undisturbed until the mushrooms begin to caramelize and adhere to the bottom of the pan, which should take an additional 2 to 3 minutes. This step helps evaporate the moisture from the mushrooms, promoting caramelization. To deglaze the pan and combine all the flavors, add the juice from one-half of the lemon.
Now, add the pasta and the vegetable stock, ensuring thorough mixing. Cover with a lid and cook over medium heat. After adding it to the skillet, check the pasta for doneness after about 10 minutes. Remember that different pasta shapes and brands may have varying cooking times. You aim to have the pasta reach a state of just-tender perfection.
After the pasta has reached its desired level of doneness, switch off the heat and incorporate the butter and chopped parsley. Squeeze the juice from the remaining half of the lemon into the mixture and stir until the butter is completely melted and evenly distributed—season with salt and pepper to taste. For serving, garnish with ricotta, a sprinkle of red pepper flakes (adjust according to your preference), and an additional scattering of chopped parsley.