Preheat oven to 400 degrees.
Add the mushrooms to a baking sheet and drizzle with olive oil, salt and pepper.
Place 3-4 sprigs of time over top of the mushrooms and roast in the oven for 20-30 minutes, stirring halfway, until golden.
Heat the olive oil and 2 tablespoons of butter in a large skillet over medium heat.
Add the shallots to the skillet with a sprinkle of salt and let them cook for about 5-7 minutes, stirring regularly.
Add the garlic, red pepper flakes and lemon zest, and juice and cook or a couple of minutes until the garlic and pepper become fragrant.
Add the white wine and let it cook down for about 10 minutes.
Meanwhile, add a large palmful of salt to a large pot of boiling water and cook the Sfoglini pasta until al dente.
Reserve about 1/2 cup of pasta water.
Add 2 more tablespoons of butter and the leaves of two more springs of thyme to the skillet with the shallots.
Add the drained pasta directly into the shallot mixture.
Before stirring, add the parmesan cheese, then toss together.
Stir in the mascarpone cheese and add a splash of the pasta water.
Stir in the fresh herbs and adjust any flavorings as needed.
To serve, place the pasta in a serving dish and top with mushrooms and fresh herbs.