Two quick things:
https://replay.pokemonshowdown.com/gen9randombattle-1976146018
This might not be a bug, but on turn 24 Zoroark is sent out while illusioned as Sableye - this revealed that the opponent's last mon was Zoroark on their team's icons. Is the use of Zoroark's base form here a bug...