While the MCU is in sleep mode the system clock to the CPU is stopped and execution of instructions is suspended until either a reset or an interrupt occurs.
That may be true, but I am not trying to use the MCU. I am trying to feed out the XTAL signal on PA25.
According to the UM, the XTAL can be left powered on when in DS:

And the CLK_XTAL_OE is fed from the XTAL and not the system clock:

So the implication is that this should work. I'm trying to figure out why. Does the PMU shut off the GPIO? Doc says that the PIN_MUX_CTRL is ignored when an OE bit is set.