Iran used Starlink during the war with the US to maintain alternative communications after the destruction of traditional communications systems by the Americans. This is what the Washington Post reported with reference to its sources.
According to the publication, SpaceX limited the sale of the terminals, but did not disable devices already licensed. The company cannot create a "white list" of terminals for Iran, as in Ukraine, because it does not have a reliable partner to whom it can entrust its administration.