This is more akin to being asked to write an auth api, but delivering a fizzbuzz function instead...in that I obviously didn't even read the problem/ask, but instead spammed code to keep the numbers up.
Secondly, every job is different in severity and scope. A surgeon making a mistake is not a fry cook making a mistake is not a civil engineer making a mistake is not a lawyer making a mistake. And public facing roles have different expectations and risks compared to the others. It's what you sign up for, I guess.
To be clear, I don't think this person should be fired or hunted down or anything. I just don't see a big issue bringing it to light with the information given. Amazon could identify them if they wanted to already. I doubt anyone outside could, given there's probably multiple NN recruiters working there.
I don't have a problem with my co-workers saying I did something dumb. That's not the same as saying I am dumb.
You should be a little embarrassed if you screw up. You only get embarrassed if you care. Its part of the motivation to improve.
We should absolutely call out mistakes, and it's good if people feel embarrassed for them. I have a few moments in my career where I felt so embarrassed I wanted to slink away and disappear. I'll never forget them, nor the lessons each taught.