What can I take to make it so I’m not backed up?

I’m taking antibiotics and pain meds for an infection

I’ve been constipated since and have been having chest pain (due to backed up gas, and such)

What can I do naturally? Or over the counter items?