Infection while pregnancy

Is monistat is safe to use while pregnancy I'm 6 weeks pregnant and having a vaginal infection I went to my doctor she gave me antibiotic amoxicillin it did not work for me so I just decided to google some information about home relief cream infection for pregnancy I see a lot of positive comments about monistat just went to buy  it at Walgreens and start to used it right away just now it make inside hurt maybe the infection is too heavy.
Anybody here got the same problem? I'm kind of worried