Approval button on user's profile doesn't work

I see now that in my case we got a spam user, picked up the ID 332, was flagged and deleted. A few days later, we got a new user, who again picked up the ID 332.

Knowing the user ID of the affected valid user, I ran this Data Explorer query:

SELECT *
FROM reviewables
WHERE target_id = 332
ORDER BY created_at DESC

Edit: and according to ask.discourse this shouldn’t happen. But I can say we’ve never interfered in the database. We have migrated and so I suppose that’s a restore operation, but at that time (March 2021) we had never migrated.

I think this may be a repro of a closed previous observation:
Deleted user info shows up in new user approval