Then it would be fine to use a switch.
Mine was flush fitting, as I mounted a back box into the ceiling before I plasterboarded.
You could possibly cut a slot in the ceiling for a drylining backbox, or fit a slim surface mount backbox.
It wouldn't look as neat, but you would have had to do similar with the pull cord switch anyway.
I always thought one wasn't allowed any switches in a bathroom/ensuite. Just pull cords.
It's a 65mm insulated plasterboard on the ceiling.