Cook pasta al dente according to package instructions. Make sure to drain when it is still slightly firm so it doesn't overcook with the sauce later on. Save ½ cup of the water you cooked the pasta in.
If using fresh corn, separate the corn kernels. Add 1.5 tbsp olive oil to a medium saucepan over medium heat. Add onion and cook until translucent.
Add garlic and chili flakes. Cook for a minute before adding corn. Sauté for about 8 minutes, or until the corn is cooked.
Blend half of the saucepan's contents with the ingredients for the pasta sauce: miso, plant-based milk, pasta water, lemon juice, and lemon zest.
Add the pasta to the leftover corn. Pour the sauce over and heat over medium-low for a few minutes until the sauce is well incorporated. Garnish with some basil!