When a properly flagged Russian tanker came through it was left alone.
My impression is that the situation with Cuba is much more complex than the mass media portrayal of a straightforward blockade. Not that I believe the US is free of guilt here; clearly harm is being caused and the motivations seem suspect at best.
Then there's also their participation in what's been termed a shadow fleet, the associated falsification of origin of sanctioned oil, the accessing of ports where they otherwise wouldn't be permitted berth, the lack of insurance in case of environmental damage, etc. As I said previously, much more complex than the mass media portrayal.
As I understand it (but I'm certainly no expert) the insurance paperwork isn't in order and the fleet not properly registered as a result of the general state of the vessels involved. The US is hardly alone in this - the UK has also recently taken to seizing such vessels that pass too close to them. But generally yes, if due to the risks no country wants to officially register a vessel and no insurance provider want to cover it then it seems entirely justified to seize it in order to protect the commons. These aren't pleasure boats we're talking about here, they're ridiculously large merchant vessels. There's approximately zero legitimate excuses for them to be flying a fraudulent flag.
Ponder for a moment why it might be that the countries involved don't want these vessels flying their own flags and don't want to extend them insurance policies themselves.
Before starting the war with Iran, USA has instituted a blockade of Cuba, intercepting the oil tankers going there and causing thus a severe fuel shortage in Cuba.
Iran blocking the Strait of Hormuz was just doing the same that USA has begun doing. So USA has no moral authority to say that Iran should respect "the freedom of navigation", which is a thing that USA does not respect.