But doesn’t Allah mention in the Quran not to call adopted sons as their own sons i.e in the case of Zaid bin Harith?

He says don’t call them as such:
Zainab bint Muhammad if they’re adopted
But they can be called sons and daughters but not in name linked to their adopted father