What is it about any ideology that might make it immune to that?
Marxism-Leninism is an explicitly anti-colonialist ideology that helped the PRC overturn the century of humiliation, defeat Japanese and US imperialism and feudalists, to win the greatest anti-colonial revolution of the 20th century.
Only if you are entirely ignorant of that history can you claim that "the anti-colonial camp is just as bad as their colonizers".