I have a question it would be really helpful if you answer.
In quran 49:11, it says- Neither defame one another, nor insult one another by nicknames [since] doing wrong after having faith is an evil practice [unbefitting you]


And do not insult one another and do not call each other by [offensive] nicknames. Wretched is the name of disobedience after [one’s] faith. And whoever does not repent – then it is those who are the wrongdoers.
So is this for the “offensive nickname” i.e names that are derogatory and will surely hurt the person
Or is it for all the nicknames that we give to people- i.e funny name we give to our cousins who will definitely not get offended or the names through which we call our friends or relatives out of love?

The above verses are about offensive nicknames and not just every nickname.