A translated fatwa from my country (Malaysia, Shafi'i):
(I'm not going to translate the word Arak here, as the english word for alcohol is used for the drink as well as the chemical. In context, the word Arak here means a drink that is used as an intoxicant.)
All Arak contains alcohol. Not all alcohol is a component of Arak. Alcohol from the process of Arak creation is haraam and najis, but alcohol that is not from the process of Arak creaion is not najis, but haram to drink.
Drinks that are created from the same process of Arak creation, whether it contains a little alcohol or the alcohol is removed is haraam.
Drinks that are not intended to be Arak or intoxicants and not created in the same method are halal.
Tapai is halal.
Alcohol as a byproduct of food creation is not a najis and can be eaten.
Medicine and perfumes that contain alcohol are permitted.
(Personally disagree with point 2 as other scholars have said that non-alcoholic beer and wine vinegar is halal, but just translating)
Another less formal source on this:
If alcohol is derived from grapes or dates, it will be haram and impure. If it is from anything else besides dates and grapes and it does not intoxicate directly or through a mixture, then it is permissible.
Some research turns up this point of view as a common one in other parts of the world, but this is the most formal version I could find.