I've literally never heard of a company demanding you give up shares in another company as a precondition of being hired, for an engineering role.
At the executive level they may not want you holding shares in a direct competitor because it presents a conflict of interest. But even then you generally have a period to divest.
Can nobody explain what the actual demand was here? What did Google offer vs. what did they demand, and why? And why would Google be buying your shares...? None of this makes any sense the way it's been presented.