The first World Cup stage took place after the invasion. The very first event, men's floor, was won by a Belarusian and he was forbidden to hear the anthem and the flag was not displayed. By the time the second stage took place, many international federations had already banned RUS and BLR, but FIG withheld the suspension until March 7th. So, in my opinion, BLR and RUS should not even have participated at the WC stages this year.
And do you really think "innocent" gymnasts have nothing to do with it? They represent nations, not themselves, or the FIG, or the IOC. This is not tennis, where athletes couldn't care less about their nations and are trying to make a name for themselves. This is about the nations, and has always been like that. Take Kuliak, for example, making a political statement with a Z on his leotard on the podium. Russia is crazy about gymnastics and even results at the World Cup are widely celebrated in national media, so stripping medals is a slap on the face in a way. You're free to think the athletes have nothing to do with it, but I fail to see things like this.