Hawzah News Agency – Q: A pregnant woman does not know whether fasting will harm the baby or not. Does she have to fast?
A: If she has reasonable grounds to fear that fasting would harm her baby, then, it is not obligatory for her to fast, otherwise she must fast.
Source: https://www.leader.ir/en/book/32/Practical-Laws-of-Islam