Praise be to Allah, the Lord of the Worlds; and may His blessings and peace be upon our Prophet Muhammad and upon all his Family and Companions.
If the alcohol that is added to the plants is used after having been transformed completely to another substance that does not cause drunkenness then there is no harm in using it since its transformation to another substance changes its ruling and it becomes pure. But if the alcohol added to the plants is still in its original form then all the mixture becomes impure since alcohol is impure. In this case, using such a medicine is permissible only if there is dire necessity and there is no Halal alternative. Whenever a person is cured or finds any alternative medicine he has to give up such medicine.
Allah knows best.