The other comments explain it enough I think, I’d just like to add that I think there is a natural reaction to underestimate the North Koreans even among leftists, but imho I think the DPRK would do better in a war against the US in Korea than even the Russians in Ukraine. Just for comparison sake the Russians have been practicing the war in Ukraine for 30 years pretty much, but the DPRK has been practicing since the 1950’s.
you are measuring by territory, but attrition war suits their goal of demilitarizing Ukraine more than holding land
The slow progress is very much intentional. Less casualties for Russia, more for Ukraine. The digging in also was intentional, Ukraine was very open about its planned counter offensive. Russia dug in and let them come.
Don’t get me wrong, there have been russian fuck ups, like, after the peace negotiation broke down, not taking into consideration that many contract soldiers might not renew their contracts.
It looks to me (I am not a reliable source) like Russia won the war immediately. There will never be a stable, western aligned government in Ukraine again. But there will be a huge buffer zone that keeps NATO far from anything Russia considers dangerous.