PWM controlled fan with ESPhome on ESP32

No it’s what I used. I’ve never actually hooked an oscilloscope up to it to check what frequency it is outputting but it works.

I’m not using MOSFETs, just a GP transistor. See here: HA Fireplace Light

And after refreshing my memory with that thread it seems the output is about 14kHz.

Where did you read that?