Its like the word "p aki"
when I was young that was the name of the local shop "the p akis " or "the p aki* shop" but over the years the word "p aki" was used in a negative way and became associated with bad feeling (and to lump all asians as one) so became a word not to be used
Conversely the word "chinky" was and is to a degree used for a Chinese takeaway and now people are like "ooh you cant say that but it was never used in a negative way due probably to numbers and visibility of Chinese people (in Scotland in this example)
I think people just link the 2 words together "p aki, chinky" but in my mind they have very different etymology
So in reference to the question that word to describe a Pakistani became unacceptable due to just that, the majority decrying it so
and interestingly the swear filter agrees with me