Preheat oven to 450. Line a baking sheet with foil. Combine the tomatoes, peppers, shallots, garlic, oil, salt and sugar on the prepared baking sheet. Toss with your hands or rubber spatula until the vegetables are evenly coated with oil. Spread into a single layer and roast for 15-20 minutes, until the tomatoes are just starting to brown. Remove pan from oven and add the zucchini and corn. Toss and spread into an even layer. Roast for 5 minutes more, until the zucchini and corn are crisp-tender.
Meanwhile, bring a large pot of water to a boil. Cook the pasta. Drain, then place the pasta back in the pan. Add the roasted vegetables and all their juices to the pan, along with the butter, thyme, red pepper flakes, cheese, basil and pine nuts. Toss well, then taste and adjust seasoning. Serve in pasta bowls with more grated cheese.