> While yes, they were going for a poetic comparison to 'Driving whilst black', I'd prefer we use 'woman' as the noun and 'female' as the adjective.
It was using "female" as the adjective. If it was being used as a noun, it would have to be "Driving while a female".