Muscle relaxer while pregnant

Rose

Has anyone took flexaril while pregnant? I have lockjaw and it gets super painful and inflamed. And I got prescribed flexaril. Just wondering if anyone else has.