Pulse the garlic and shallots in a food processor until finely chopped. Add the herbs and pulse briefly until finely chopped (be careful not to puree them). Transfer to a bowl. Stir in the olive oil, vinegar, lemon zest and juice and red pepper flakes. Season with salt and more red pepper flakes if desired. Keep in the refrigerator until ready to serve.