In a food processor, pulse together the beans, garlic, walnuts, and peppers. Add the olive oil, lemon juice, and basil (if using), and process until combined. Taste and adjust seasonings.
Recipe by Love and Lemons at https://www.loveandlemons.com/roasted-red-pepper-spread/