As you know, pregnancy and medications do not mix well, and many are prohibited, otherwise, they could threaten your child's health.
It is important to distinguish between products that are formally contraindicated and those that are not. Contraindicated products carry risks that have been scientifically proven. Do not take them under any circumstances. For drugs that are not recommended, the risk is suspected but not proven. They should only be taken if you get a real benefit from them and if you have no other solution.
In any case, before taking any medication, ask your doctor for advice. They can also provide you with a complete list of prohibited and authorized products during pregnancy.