medium-size ears corn, shucked and kernels removed (3 cups kernels) • Fine sea salt • (≈1 pound) dry orecchiette or farfalle • unsalted butter • olive oil, plus more for drizzling • scallions (about 8), trimmed and thinly sliced (keep the whites and greens separate) • ground black pepper, more for serving • grated Parmesan cheese, more to taste • torn basil or mint, more for garnish • red pepper flakes, or to taste • Fresh lemon juice