I can relate to your anxiety about your son being dismissed from inpatient. My daughter was inpatient twice and I recall being so anxious about her return home both times.
It helped me to remember that inpatient usually is only good for getting on some weight and maybe stabilizing. The real work actually begins when they come home. I think the first time my d came home I thought she was cured. It helped me to look at coming home as the beginning instead of the end.
Upon her first dismissal the very old school facility (I had yet to find the forum) told us not to be the food police, etc. You can guess how that worked out. My d quickly lost weight and ground and ended up back inpatient again within 6 months.
The second inpatient stay we finally made some progress thanks to a great evidence based facility. I was determined to do things differently this time The facility required we have a contract in place with my daughter before she could come home. We found this invaluable. We covered things like what would happen if she didn't eat meals, plan for continuing to gain or maintain weight, exercise (would it be allowed and if so how much), required attendance at her PHP program after dismissal from residential, etc. Although we wrote it as a best case scenario, we covered what would happen if she was not able to comply. I think it really helped my daughter to set the expectations for when she came home in the contract. I know it helped me because I had a plan for how we were going to handle it if my d could not comply. I am not saying at all that it was easy, but it always helped me to have a plan.
As for exercise, we tried to let my d continue to exercise early on and it never worked. In the end, she had to stop all exercise for 3 months (other than casual walks with the dog -and me to ensure they were casual) until the compulsion was gone. It was torture for her at first and I would catch her trying to sneak out to the gym. By the end of the three months she would have rather napped than gone to the gym.