Capitalist world is in a crisis now, and we can see anti capitalist movements only getting stronger around the globe. Meanwhile, BRICS is a perfect example of the division in the capitalist world. It's a bigger economic bloc than the G7 now, and it includes a mix of capitalist and socialist countries. Something like BRICS would not be possible with an ideologically driven geopolitical position from China.
Furthermore, as the economic situation in the west continues to decline, we're seeing people increasingly lose faith in the system. Western powers continue to weaken, and their ability to prevent socialist movements also weakens as a result. Recent events in Bolivia are a perfect illustration of this working in practice.
The contradiction is unavoidable, but it's possible to create a situation where socialists will be the ones who have the upper hand.