Whisk egg and ricotta in a large bowl. Stir in half of the parmesan, fontina, water, 2 tablespoons of olive oil, salt, a few gratings of fresh nutmeg, lots of freshly ground black pepper, red pepper flakes, and garlic. Stir in squash, spinach, and sage or thyme, if using. Add dried noodles and stir until everything is coated.