It wasn't "under a Russian flag"... hence them having to admit that it was their ship after all.
It is under European sanctions though, as Russia invaded Ukraine. That's why they've been running a "shadow fleet" in the first place. Because their are sanctions against Russian ships and trade. Sanctions from a federation of counties against the war.