Roast the peppers by placing them on an open gas flame, turning them frequently with tongs until all sides are charred black, 7 to 10 minutes. Place aside to cool for about 15 minutes. Peel charred material, stems, and seeds from peppers and coarsely chop.

Add garlic and peppers to a food processor and process until smooth. Add feta if desired.