You’re no doubt well-informed on the theoretical systems of those countries but you can’t just look at the theory and say “that’s exactly how it works in real life”. It’s a fact that leadership in the DPRK has passed on from father to son for 3 generations now - any country that does that is a hereditary monarchy, not a people’s republic. Kim Jong Un was never part of the working class. He was raised in palaces and sent to an elite college in Switzerland. You don’t even need to trust any Western media on this - just watch a few minutes of North Korean TV and you’ll hear how the leaders are basically treated as gods. Many people who threatened or spoke out against their rule, including those in the “royal” family like Kim Jong Nam, have been murdered or disappeared.