This is the correct way to handle a former president who tries to mount an anti-democratic insurrection.
One thing worth pointing out is that by the time Yoon Suk Yeol declared martial law on December 3, 2024, he was already one of the most unpopular presidents in South Korean history. After that his ratings declined even further. This makes for a much smoother enforcement of the law to make him accountable for his actions.
I would also say that this is the correct way to handle a former president that was elected as the result of a rigged election.
He'll eventually get pardoned like presideng Park and the Samsung crown prince, Lee Jae-yong. But he'll probably do 10 or 15 years anyway.
It also illustrates what a real insurrection attempt looks like. [1] He declared martial law, suspended and prevented their Congress equivalent from meeting (and directed the military to enforce such), ordered the immediate arrest of numerous high level politicians with a goal of arresting hundreds, issued a declaration that all media and publications had to be approved before publication, ordered the power+water for a news broadcaster be cut, and much more.
[1] - https://en.wikipedia.org/wiki/2024_South_Korean_martial_law_...