Bring a large pot of well-salted water to a boil. Add the pasta and cook until just shy of the package time, adding the frozen peas for the last 2 minutes. Scoop out 1 cup of pasta water, then drain.
While the pasta cooks, stir the ricotta, lemon zest, 1 tbsp lemon juice, garlic, 1/4 tsp salt and a few grinds of black pepper in a bowl.
Heat the olive oil in a large skillet over medium heat. Add the spinach and cook 2 minutes, tossing, until just wilted.
Add the drained pasta and peas to the skillet and toss to coat.
Reduce the heat to low, add the ricotta mixture and 1/2 cup of the reserved pasta water, and toss 1 to 2 minutes until the sauce turns glossy, loosening with more pasta water as needed.
Pull the skillet off the heat, stir in the Parmesan, taste for salt and lemon, and serve right away with red pepper flakes if you like.