I made a backup copy with the JKSV program, then I extracted the micro sd and inserted it into the pc via usb adapter, copying the file to the pc, at which point I tried to open it with pkhex.
It's the same procedure I use for pokemon sword and shield, even now, only it doesn't work with scarlet.
I am using pkhex 23.05.11
I don't use the pc emulator, I have a switch modded with hekate