Hi Glasgowdan, glad you’re breathing a bit easier than the OP you put up in the red mist. Please remember any advice is being given based on no actual first hand knowledge of your kid, just what you’ve told us and also my experience with a daughter. Right, disclaimer done, on to advice.
As pretty much every sensible answer suggests, punishment is not the way forward, nor is guilting the behaviour. All this does is make child feel rubbish which brings about issues all of their own which are often disguised within other “bad” behaviours.
I don’t know if you’re a talker with your lad, but it does sound like some chat time is needed. Have you asked him why he does it? I know he’s only 3 but he may be able to give an answer. It may be an attention seeking behavior that he has sussed gets you back in the room once he’s gone to bed. Is he actually ready for bed/sleepy? Did it start around about clocks changing time? Our lass is taking much longer to settle to bed now it’s lighter at night (she is almost 7 now though) and I can remember over previous years she’d be a right pain calling us back up because she wasn’t tired. We got her blackout blinds and a bright bedside light and said she could read, draw or play with toys on her bed until she was tired. She now self settles really well (mostly) but it took a lot of work and deep breathes on our behalf.
A lot of it sounds like he may think it’s a really funny game that gets your attention but as I said, this is entirely based on the info you’ve given.
I hope it helps at least a little. Good luck.