It's not that South Korea specializes in too few areas; I am well aware that a small population cannot be dominant everywhere. It is that if you specialize in something, even one thing, in order for it to be worth it, you need to be self-sufficient. If you cannot make your society self-sufficient at large, efforts should be put there before they are allocated to building specialties. A chain is only as strong as its weakest link so vulnerabilities need to be addressed first and foremost, otherwise your specialities turn into more vulnerabilities if they are built dependent on foreign components/supply chains/technology as their foundation. South Korea may seem to be punching above its weight but it is standing on weak chicken legs that others can collapse, therefore, its punches are no threat and no asset to hard power. South Korea's tech sectors would crumble to sanctions at the foundational science level; they cannot withstand what China overcame. When the question was brought up of whether South Korea can develop nuclear weapons, the president directly ruled it out as a stupid notion because he said the nation would be unable to survive the sanctions. If your nation makes decisions in fear of sanctions, then you are not sovereign. Your existance and health depends on you acting like someone's dog. In that case, what is the purpose of developing anything that you cannot fully control? Nothing given to you or can be revoked is worth having; if South Korea's tech/shipbuilding sectors were impervious to sanction, I would agree with you. But their whole nation lives in fear of what larger countries could do to them even without war, so everything they built on that foundation is pointless. I'd rather be North Korea and fear no outsider; they are a sovereign nation.
And also, to achieve this fragile appearance of success, how much do they pay? They work so hard and their society is so burnt out that men and women hate each other, driven by financial pressure and work competition. So, it's like what I said, they made too many compromises to "succeed" with a fragility and dependence that makes it all just not worth it.
If I were them, I'd ask to become a Chinese province. Then they go around slapping people in the face their thier dicks in their technological strengths and be at ease that the rest of China ensures they need never fear sanctions or retaliation.