I have recently come to know that backbiting count as a sin only when talking behind a muslim. So when talking behind the back of a non muslim will it not be a sin? Is it atleast makruh?

Even though this may be relating to believers specifically in another perspective it would not be morally good to talk bad about others even if they are non Muslims.