It’s called second campism, and it’s been happening for a long time, it just used to make more sense when it could actually seem like there was two hegemonic camps during the cold war (still an oversimplistic view).
Now they just support any regime that’s anti-US/the original capitalist camp because they have no hegemonic camp of their own to support, just a broad smattering of authoritarian regimes with completely different ideologies.
But you see that small socialist elite proclaims it’s doing it for the working class, therefore it’s okay now.
Don’t look at those prisons full of attempted trade unionists pls.