
Bring a large pot of salted water to a boil. Add the gemelli pasta and cook according to package directions until al dente. Reserve 1 cup of the pasta water before draining.
While the pasta is cooking, add the ricotta cheese, olive oil, lemon zest, salt, and pepper to a food processor or blender. Process until smooth and creamy, about 20 seconds. Set aside.
Heat 2 tablespoons of olive oil in a large, deep skillet over medium-high heat. Add the zucchini rounds and cook for 3-5 minutes undisturbed, then flip and cook for another 2-3 minutes until golden brown and caramelized.
Add in the corn kernels, garlic, salt, pepper, and red pepper flakes if using. Stir together and cook for another 2-3 minutes, until the garlic is fragrant. Turn off the heat.
Add the cooked pasta to the skillet along with about 3/4 cup of the reserved pasta water and the whipped ricotta mixture. Stir to combine, adding more pasta water if needed to thin out the sauce.
Divide the pasta among four serving plates. Garnish with grated parmesan cheese, toasted pine nuts, sliced basil, and freshly ground black pepper. Serve immediately.