If he is eating hay well and drinking, he is already doing what is best for him. Fibre and fluids! Put out bowls of water too, if he normally just has a bottle.
I wouldn’t be concerned at this point that he’s not wanting pellets. When my rabbits are not doing well, they go off pellets first and it’s the last thing they come back on to eating once they’re recovered. They know their body needs fibre. Definitely encourage wet leafy greens. Dill and carrot tops can be useful for a rabbit with an uncomfortable tum. Also try other forage type plants like rose, apple or willow leaves. Fresh grass if you can source some from an area you know isn’t sprayed or has wild animals pass through it.
Getting him moving around will help mobilise the gut also. So just changing up his habitat or putting some new hidey boxes in a free roam area. Or making a maze or obstacle course for him might get him curious enough to go investigate. Even simply putting him in a room he normally isn’t allowed in should get him moving.