Ah I just did some deeper research so it says that I can only use Pokemon from Galar but I don't get it when I was battling a friend I could use my Kyurem white and he's not from Galar.
So I recently modded my 3ds and genned up some Pokemon on PKHex they're all legal like the program says but when I transfer over the Pokemon over to Sword and Shield I can't use them in ranked battle or any online battles.