In a food processor with the blade running, add the garlic cloves and coarsely chop. Add the roasted red peppers, pine nuts, basil (or basil and mint), Parmesan cheese, lemon juice, red pepper flakes (if using), and a generous pinch of salt and pepper. Process until mostly smooth.