You record the recovery as income in the year it is received. The original write-off is not reversed retroactively.
This is why documenting the write-off decision matters. The audit trail should show why it was written off and when the money unexpectedly arrived.
We handle this for founders running US companies.