This is the best solution. Shows you’re “extra generous” instead of just letting someone walk with their equity. Shows “the company will take care of me.”
Would initiate a conversation around performance to set expectations that performance needs to improve or their position is at risk.
Be the hero of the story: treat the employee fairly and raise performance expectations. Hopefully, the equity is a small price to pay.