IIRC Ukraine publicly confirmed the use of storm shadows. But they did not say if that was the only weapon used.
There's a good chance they used more than one weapon type at once to defeat Russia's anti-air defenses cost effectively.
Also, there's speculation that the reason why storm shadows were approved for this usage is that Iran was found to be using shahed drones with components made in that factory. Basically, that pissed off the US and UK, who were happy to let Ukraine use overwhelming force to attempt destroy the factory.