While you and your ex may have joint custody, for college related things (filing the FAFSA, CSS profile, determining in-state residency, etc) the custodial parent will be the parent who the child lives with.
Your son, may still end up getting in-state tuition through your residence in MA. Your best bet would be to contact UMass Amherst to find out their policy as it pertains to your situation.