Version exclusive: only in Ruby, not in Sapphire; only in Omega Ruby, not in Alpha Sapphire; only in Sword, not in Shield; only in Brilliant Diamond, not in Shining Pearl.
Not obtainable in: Sapphire, Alpha Sapphire, Shield. Trade it over from another game.
Locations from PokeAPI, for Brilliant Diamond/Shining Pearl, Legends: Arceus, Scarlet/Violet and Legends: Z-A from PKHeX. Omega Ruby/Alpha Sapphire locations are still incomplete; their version exclusives are marked.