Restless legs Syndrome in pregnancy

Patient: I am 27 weeks pregnant with RLS, My doctor has prescribed Tramadol an Zanatax knowing i was pregnant. Are these safe to take during pregnancy?

Symptoms: Severe pain, restless legs

Doctor: