The general advice is to not take any medication during pregnancy without a physician’s advice. This includes all over the counter medicines.
Okay some don't, particularly North American and Northern/Western European ones.
But mostly, on average, physicians always try to prescribe you something.
https://health.clevelandclinic.org/pregnancy-safe-medication...
While they do list some medicines, note that they also say check with your doctor first.