Preheat the oven to 350 degrees and line a large baking sheet with aluminum foil or parchment paper.
In a large bowl, add all the ingredients together (except dried basil and red pepper flakes). Heat pesto in the microwave for about 1 minute. Pour over the mixture; mix with hands.
Pour onto the large baking sheet. Cover with foil and bake for 35 minutes. Remove foil and cook an additional 10 minutes. Sprinkle with dried basil and red pepper flakes (optional).