Pregnancy and metformin.

I just found out I’m pregnant. Around 4 weeks and I just started metformin about a week ago ONLY to help regulate my periods and ovulate.. my weight and sugar is fine.. anyone else taken this while pregnant? Or will my doctor take me off of it when I go for my first appointment since I’m now pregnant?