Is Gas-X safe to take early pregnancy ?

Sorry this is tmi but I have been constipated for a few days and today I had very bad gas pain as if there were knots in my upper abdomen. Is it safe to try Gas-X? If anything similar please share below ⬇️