It is not allowed to consume any food or medicine which contains alcohol. This is the verdict of majority of our scholars. According to Ayatullah Sistani, if the percentage of alcohol in the medicine or food is very small that it does not cause intoxication then it might be permissible to consume it.
Wassalam.