Buddhism does not deny the existence of a nation itself. There is a teaching that we must not forget to be grateful for the Four Graces (Shion), but the Four Graces are the blessings of parents, the king's blessings, the blessings of sentient beings, and the Three Treasures (there are multiple opinions). It's impossible not to forgive patriotism when thanking the king, so patriotism cannot be denied either.
Since the Buddha himself was a prince in the first place, the idea that the people will be rich only when the nation is managed correctly is naturally incorporated. That's why the Buddha persuaded King Bimbisara and King Ajase to create an honest nation, and Buddhism in later generations followed that regardless of the past, present, east, or west. Well, even if you say Buddhism in one word, it's actually so diverse that there are 88,000 Dharma words, so I can't say everything unequivocally...
Now, it is said that in a fairly old sutra called the Hakku Sutra, Buddha said this.
“Don't say harsh words. Those who have been told will speak back to you. Angry words are painful. Retaliation will come upon you.” (133, translated by Nakamura Hajime, Iwanami Bunko)
“Like a broken bell, if you don't speak up, you have reached peace. For you will no longer be angry and curse.” (134)
“But fools do bad deeds and don't notice. Shallow fools are bothered by what they have done themselves. — Like someone who was burned by a fire.” (136)
I can't stop my suffering when I hold a grudge against others and make them apologize. If you don't stop holding a grudge against yourself, you won't be able to save yourself. If you keep holding grudges for a thousand years, you will be tightening your neck for a thousand years. No matter which country it is, people who have abandoned Buddhism don't notice it.
(Meanwhile, Japanese people are also forgetting it... in the old days they said they hated sins and didn't hate people, but recently, thoroughly condemn them! That trend is getting stronger, isn't it? (This is also a state of mind that strangles oneself)
Let's love our country. And let's love other countries just like our home countries. If you don't do that, you'll just upset your own mind.
Finally, when confronted with an unfriendly attitude, Dogen Zenji said that this should be done.
“I like pretending to be inaudible and ignoring it (rather than saying it back and forth)”