Hajmola is made up of Ayurvedic herbs(main ingredients are black pepper, long pepper, ginger, sugar, lemon, cumin seeds, sugar, black salt, rock salt, etc). It comes in 5 different flavours- Nimbu (Lemon), Original, Pudina (Peppermint), Imli (Tamarind), Amrud (Guava) and Anardana (Pomegranate).
All the ingredients present in hajmola ease in the digestion process. It forms a part of day to day diet for many Indians. People also opt for hajmola during pregnancy. So, it is not unsafe during pregnancy but the quantity of intake should be taken care of. You should always consult with your doctor once about the amount of hajmola intake per day because every person has different needs and reacts differently to different items.
Remember- Prevention is better than cure and excess of everything is bad.