Heat oil in a medium saucepan over medium-high heat. Place first 6 ingredients into the pan and sauté for about 5 minutes. Add tomato paste, oregano, thyme, and rosemary and continue to sauté for 3 minutes. Deglaze pan with the wine and vinegar and cook until almost all of the liquid has evaporated, about 3 minutes. Add the remaining ingredients and lower the heat to medium. Allow the mixture to simmer for about 30 minutes, stirring frequently. Season with salt and pepper. Pour the hot mixture into a food processor and pulse 3 times. Allow the mixture to cool.