>>52932952They get treated exactly the same as sub-Legendaries by the code and even got added along with all the previous Legendary pokémon in SS''s Dynamax Adventures.
They're legendaries under a different name (you know, because worldbuilding. They added the things originating from a non-earth place and gave 'em stats comparable to legendaries), as much as you want to discount them.