If there is wine/beer in food, it becomes najes and haram to eat even if the quantity is small. But if there is alcohol in the food, and the overall concentration of alcohol in the food is less than 2% (like vanilla being present in foods) it would be permissible to eat such foods.