Progesterone while pregnant

Has anyone been prescribed progesterone while pregnant?

I’m 15 weeks pregnant and have been experiencing moderate cramping at night for the last few days - enough to wake me up and keep me up for some time. My doctor prescribed progesterone suppositories to help relax my uterus. I filled the prescription but the warnings on the pharmacy pamphlet says that you shouldn’t take it while pregnant. So now I’m worried.

Wondering if anyone else has taken it and had a successful pregnancy?