Ik you get banned in a competitive match but what about non- competitive.
You will only get banned if you use the Pokémon in an Official Tournament. Otherwise, you should not be banned. This kind of makes sense because why should Nintendo care of you troll some online dude with Shiny Legendaries. Source: https://gamefaqs.gamespot.com/boards/259372-pokemon-sword/78397767