Mix the well ground flours together with the egg and water, turn out onto a floured surface and knead until smooth, elastic, no longer sticking to your hands and it feels a little like your earlobe. Cover with plastic wrap and leave to rest for at least 30 minutes.
Spray a heavy duty frying pan or wipe with oil, place on a medium-high heat and add all the mushrooms, whole. Put a plate, another frying pan or some large, flat object on top and press down with a fair bit of pressure. This "press-searing" squeezes some of the moisture from the shrooms, caramelizes the outside and improves their overall texture. Flip over after 5 minutes or so and press down the other side. Do this until both sides are golden-brown and the shroom is mostly flat. Remove from the pan and roughly chop.
Add a little more oil or your fat of choice and fry the onion on high heat until browning, then add the sundried tomatoes, garlic, chopped mushrooms, thyme, paprika, salt and a generous grind of black pepper. Cook for a minute or 2, then add a can of tomato, breaking up any large bits of tomato if necessary. Turn the heat to low and continue to cook while you crack on with the pasta - you want it dark red and beautifully reduced.
Get a large pot of salted water to a rolling boil 10 minutes before you want to eat.Break off a chunk of the now rested pasta, and roll it on a floured surface into a worm/poop shape about the thickness of your pinky finger. Using a sharp knife, cut it into 3-5mm thick pieces (depending on the thickness of your worm), pick up each piece and roll between your palms to make earthworm sized rolls. Toss with flour to stop them sticking to each other. Cook in batches for about 1-2 minutes, until al-dente - they will float before being totally done, so once floating give them another 30-45 seconds or so. Remove and add to your pan with the tomato sauce. Once all of them are done, add a 1/2-2/3 cup of the pasta cooking water to the tomato sauce/pasta, turn up the heat, stir through and cook until hot through and coating the pasta beautifully. Add a little more pasta water if it looks too thick. Top with pecorino or parmesan and serve immediately with a crisp green salad.