As a society we have mostly abandoned shame and now seem to view shame as universally bad.
I don’t think that’s true, I think it has its place and if someone behaves shamefully then why shouldn’t they feel shame?
If you are prepared to own your behaviour then other people’s opinion won’t bother you. But if your behaviour (and I include my own in this) has to be kept like a grubby little secret, then maybe a bit of shame won’t do any harm in the long run.