Interesting! I tried a random older version of PKHeX (20220913) and it's working perfectly now. Seemingly something in one of the more recent updates has broken Ranch support. I've mentioned this to some devs in the PKHeX discord and let them know too, hopefully this can be fixed in the next update!