Check your thinking. Korea currently has a DMZ dividing it from a war that never really ended and was fought to a stalemate. Their nuclear program didn’t result in military action because they currently have a gun to the head of every South Korean citizen and the backing of a large nuclear neighbour. Those are circumstances you can’t easily recreate elsewhere.
The DPRK is a nuclear armed buffer state and shall remain so for the forseeable future.
Adding to your point, Seoul is visible from North Korea, and vice-versa, and likely has enough conventional artillery aimed at it that even without nukes an invasion would be Very Bad for the Korean people.