Bring a large pot of salted water to a boil. Cook the pasta until al dente, according to package instructions. Reserve ¼ cup of the starchy pasta water and drain the pasta. Pour the pasta back into the pot.
While the pasta is cooking, heat the butter over medium heat in a large skillet. Add the shallot and zucchini and cook for 3 minutes. Add the corn and garlic and cook for 1 minute.
Add the zucchini and corn mixture to the pasta in the pot. Season with salt and black pepper. Stir in the heavy cream and the reserved pasta water.
Stir in the Parmesan cheese, basil, and crushed red pepper flakes.
Serve warm with extra Parmesan cheese and fresh basil.
