Cover a sheet pan with foil. Add tomatoes, onion, garlic, red pepper flakes, salt and pepper. Add a swirl of olive oil and toss. Preheat oven to 400 degrees.
Start a pot of water with 1 tablespoon of salt to boil for pasta.
Place tomatoes in oven to roast while cooking pasta. Chop basil and grate cheeses.
When pasta water is boiling, add pasta and cook for 9 minutes.
When pasta is done, drain and add to bowl. Take roasted tomatoes out of oven and add to pasta. Add cheese and basil. Toss lightly and serve.