Imran Khan was pressurized to recognize the legitimacy of Israel but, he refused to do so, citing that, as long as the rights of the Palestinians are guaranteed, there won't be any discussion on recognizing Israel.
The current crooks of Pakistan's parliament will bend over backward to accept Israel, as they do not have the spine to reject their bosses. On the surface, they might resist and reject the acceptance of Israel, but in fact, they all are on the same page. The same thing they did about drone attacks during the Zardari and Nawaz governments.