What does Islam say about patriotism and nationalism. Is it part of religion to love the country you are born into?

Islam rejects blind and unjust patriotism and nationalism. If nationalism/patriotism means:
1- We feel superior to other nations
2- We support our country even if it commits injustice
3- We exploit other nations

Then Islam rejects that

However, loving your land/country is recommended in Islam:
1- Loving your country makes you want to make your country a better and more just place
2- Help people in your country

Then this is recommended.

There is one hadith that state, “Loving your homeland is part of faith.”