This is not complicated. Just buy a ceiling fan control. They cost sightly more because it's not the same as a dimmer.

1.5 Amp White Slide-To-Off Quiet Fan Speed Control

Pick a fan controller with a higher rating if yours needs more than 1.5 amps.