Spain did after their civil war.
Quite unusual circumstances though. Used as a force for unity after the death of Franco, I don’t know of any other countries who have overthrown monarchy’s through either democratic or mor e direct methods, reinstating them.
Except us, of course. I’d forgotten Charles the second.