Western companies have largely taken the same approach and exited markets that banned them rather than sell. Whether it's Google, YouTube, X, Instagram, or Facebook, they didn't sell either.
Do you sell/license the software? Do you charge this new company for API access to the 'old' services?
I've had a really hard time trying to imagine how this could play out in fair agreement. I think the only real option is to exit the market.