many of these states and their governments are openly hostile to communist elements, but a communist party actively opposing their government would risk destabilising it and then playing themselves directly into the hands of the imperialist states. an indefinite “united front” would be desirable, especially in countries like iran, but it seems all leftist organisations in these states have either decided to fully support the government in everything, becoming controlled opposition (KPRF in Russia) or western puppets like (MEK) or whatever the fuck the “leftist opposition” in russia, belarus is.
Remember that the capitalist economic policies of those liberal governments inherently and inevitably lead to contradictions, instability and crisis. You can be 100% sure, that they’ll become unstable without communists doing anything. Especially considering outside pressure, sanctions, wars etc. If there can be any hope of long term stability, they must be opposed by national communists.
Also these states, like any capitalist state, are nothing but an instrument of class warfare against the working class. The very moment those capitalists decide they stands to gain more from selling out their nations by becoming comprador capitalists who represent outside imperialists interests, they’ll just do it. In fact, they already tried it multiple times in all of those nations. Putin tried it. You can have critical support and temporary alliances for national liberation, but ultimately, liberalism is not at odds with outside imperialism. They can find arrangements, they are compatible, they have common class interests and they will have to be fought and defeated to defeat imperialism.
While the role of communists in the imperial core is to fight their own imperialist, they should also trust, that comrades in other countries know what’s best and which time and strategy is the correct one to act against their bourgeois. And they should be supported uncritically and above their liberal capitalists states, when they ask for it. International solidarity is amongst workers not with capitalist states.