I mean, the US has attempted to sever the USSR and Russia's pipelines to Europe since the 50s or 60s and sanctioned companies that constructed the Nord Streams.
I wrote about this, and it's a real doozy, but I think there are numerous reasons for the war. I don't know if Putin expected to accelerate multipolarity and de-dollarization, but he may have hoped the invasion would inspire the global south to reduce US dependency.
El Pepe, a 2018 documentary on Uruguay's President, mentions US interference in Ukraine and the likelihood of a war with Russia, so Putin undoubtedly knew where Latin America stood on the matter.