Help needed.

So I have been dealing with OCD, BPD and suicidal thoughts since a year now. Things are changing, life is becoming better. But something about the doctor I am consulting is kind of holding me back. The doctor prescribed me Pexep as a cure for all that I am dealing with, but google on all the well known sites says that if suicidal thoughts are observed immediately contact your doctor. I was very confused by this statement. When my doctor knew I was struggling with it, why did he prescribe me a medicine that can drive me to kill myself? I talked to my doctor about it, he said that not everything we read on Google is correct. He told me about a false study being conducted and it's repurcussions. He did sound a lot convincing and I do trust him and I still want to continue trusting him. But I have to be cautious. Help me out.