Open with a Chaff grenade to stop REX from moving. That single item turns an unmanageable fight into a manageable one.
Then hit the radome on its shoulder with Nikita missiles. Gray Fox will step in to help after that, which buys you breathing room.
Repeat the pattern: Chaff, then fire into REX's mouth. There is also a positioning trick worth trying, where you Chaff, run behind REX, and shoot up into the mouth from underneath. It is less obvious and it works.