It is said that dictatorships like Russia and China will use any of their very large corporations that provides services to foreigners to help them reach their own goals. This is logical and probably true.
Kasppersky is (was?) the world's most widely deployed anti virus. It was founded by a former KGB officer and is closely tied to the Russian government.
It was found to be uploading files to Russia when their algo figured it was good docs for the Russians to have.
JB is probably in the same boat. (So is Zoom and lots of other software, but that's for another day)
If you are writing software for the Ukrainian army, don't use JetBrains. If you are a small time dev in the U.S. it is likely within your risk profile.
If you just want to punish Putin, and therefore you would stop using Russian software, that's another story, and one that I have a harder time justifying.