Well, I won't say "foolproof" but I have been using the procedure from Serious Eats for hard cooked eggs and I have not yet encountered an egg that was difficult to peel.
https://www.seriouseats.com/the-secrets-to-peeling-hard-boiled-eggs
I see that article was updated 2020-07-29. I'm pretty sure that I originally read it before the update.
Which method do you use Andy? The drop the eggs into gently simmering water or steam them?