Painful gas?

Has anyone been having painful gas? I’m 38 weeks and have been having the worse time passing gas. I keep thinning is going to be labor then nope.. it’s just gas.

Any remedies or anything I can do to help?