Maybe, but the EU has different policies and a different understanding of immigration now compared to say 2010-2023, right? Also those countries you mentioned are a bit closer to Europe compared to Iran.
But I’m also not sure that the situations are comparable. In the case of Ukraine which is probably most similar to Iran from an economic standpoint, had many refugees who were temporarily fleeing Russian aggression but planned to return to Ukraine. Iran, especially if/when it’s out from under sanctions has a more robust economy and geopolitical forces going for it, versus Libya or Syria, in my view.