Brazil, China and India didn't join the sanctions. Brazil just reprehended Russia in some signed UN document, as the invasion is considered wrong by us, but didn't punish Russia, preferred our old tradition of keeping friendships.
And beyond our tradition, which we take seriously, we were not prepared for a possible shortage of Russian fertilizers. That would not only potentially impact our economy (in the short term), but threat food security around the world. So there was too much harm to be done in exchange for an uncertain gain.
Maybe being part of BRICS had its own weight on this matter, but our geopolitical tradition, for example, is way more important. Things would be different if Russia was causing problems in our continent, though.