I have been on the medicine for hairloss for 6 months now, and the ingredients include alcohol, it's a medicine i rub onto the scalp.

I was told we should not be praying with perfumes on because they contain alcohol, so im guessing this medicine would be haram as well?