Constipation / milk of magnesia

So I brought some of the recommended items for constipation from my nurse up to the pharmacist at Walgreens because I wanted to know which she thought was safest. She said she wouldn’t use any of them except milk of magnesia if it was her. That wasn’t one of the things my doctor listed but researching it does seem to have the least amount of ingredients... no dyes... stimulant free. Has anyone used this during pregnancy and has good results or had a dr recommend it? I’ll still wait to ask my nurse before taking but she takes forever to get back.