[M]ore than half of the population that uses this medication has some psychiatric pathology, anxiety and depression, insomnia, suicide risk, and/or sexual dysfunction.

Finasteride is an effective medication for treating hormonal alopecia, but it can have adverse psychiatric and psychological effects in some patients… Numerous studies show that more than half of the population that uses this medication has some psychiatric pathology, anxiety and depression, insomnia, suicide risk, and/or sexual dysfunction… Likewise, if the patient has some underlying psychiatric pathology or if he has a family history for the same reason, he is at risk of developing post-finasteride syndrome.

How Finasteride can affect your mental and sexual health, Andrologica Blog, February 26, 2023