I would imagine that Israelis needs are more towards the ballistic missile threat which as I understand it the pac-3 missiles are better at. Does the basic system need to be changed to handle pac-3 and that would be why they are retiring these systems, or as you said already they have something better than patriot to replace them with?
Regardless Ukraine needs both capabilities desperately. Long range anti aircraft capabilities to push back/destroy Russian aircraft launching cruise missiles and glide bombs, and anti ballistic missile defense.
Pretty sure Ukraine won’t be picky
Hopefully Israel has a nice stockpile of AD missiles of any kind
The Israeli Iron Dome is arguably better than the US Patriot, particularity when coupled with David’s Sling and Arrow systems.
The 8 Israeli MIM-104D Patriot (PAC-2/GEM+) Patriots systems were retired for a reason. Last use was in 2018.