so I have a serious question.

I just found out I'm pregnant I'll be 5 weeks on Tuesday but here's my question? I'm on 500 mg of metformin twice daily and this is for pcos before my pregnancy, should I still keep taking it? I'm going to call my doctor in the morning to find out but I just wanted to make sure I'm not hurting my baby by continuing to take this med? I've read it's okay and can help lower the risk of miscarriage in the first trimester so idk I guess I just want some advice?