Our main bathroom fan above the shower vents directly into the roof space, but we only use the bath so not an issue.
Even if it was legal at the time, it feels to me to be a particularly stupid thing to be allowed to do.
In the deep south you can guarantee the roof space will be cold compared with the shower stall nearly all year round, which surely means the moisture will precipitate on the wood beam holding the roof up...
that is what I trying to avoid, to put the vents into the roof space.
It's perfectly safe to vent into roof space
It eliminates the risk of roof penetration
(But adds the annoyance of fan noise - with fan directly mounted on ceiling panels.)