Stay away from anything anti-androgenic. Finasteride, regardless of whether it’s oral or topical, is going to have an anti-androgenic effect. Stay away from Saw Palmetto, Dutasteride, etc also. As others have commented, you’ve been given a warning and you’re lucky with such a severe and fast reaction to come out of it ok. Others have taken small doses spaced years apart and the second or third attempts induce severe, completely life-altering consequences.
Believe me, when I was 22 and my hair loss got aggressive, I thought my hair was an important part of my “look” and that no woman would ever want me if I was bald. Especially so young.
But since my hair loss continued with PFS anyway, I had to shave my head, and I absolutely dreaded it. However, many people including women tell me that I look better bald.
Just shave your head, hit the weights, and own it. A confident bald man > an unconfident man with hair every day of the week.