“Allah does not forbid you from those who do not fight you because of religion and do not expel you from your homes — from being righteous toward them and acting justly toward them. Indeed, Allah loves those who act justly.”
(Surah Al-Mumtahanah 60:8)
The quran in another verse is against having awliya' (protectors/allies) that are enemies of allah (i.e. people who fight islam, try to corrupt your faith, mock your religion, etc.) but that's completely different from being friends with non-muslims who don't make you comprise your muslim values or influence you toward sin, it's like befriending a fellow muslim.
"O humankind! Indeed, We created you from a male and a female, and made you into peoples and tribes so that you may ˹get to˺ know one another. Surely the most noble of you in the sight of Allah is the most righteous among you. Allah is truly All-Knowing, All-Aware" (49:13)
I have no issue with befriending non-muslims in the slightest and I enjoy it because I get to see other peoples POVs.