Jeep Wrangler loses power and starts to stall

My local mechanic has been unable to figure this out, and I’ve had the problem for months:

My 98 Jeep Wrangler occasionally (and recently more frequently) starts to lose power when I’m driving along and starts to buck like it’s stalling out. I can’t figure any rhyme or reason to when it does this (it used to be only in low gear, now it can happen in any gear), and we replaced the fuel pump in hopes that that would fix it. It didn’t. Any suggestions?

Has anyone checked for an error code?

Yes, unfortunately it’s not registering any errors.

Sounds like its starving for fuel, try replacing the fuel filter.