Ceiling fan wiring (2x light switch, 1x fan switch)
This won't fly
What you have proposed is not to Code, due to the current loop created by the &quot;solo&quot; hot wire going up to the fan then returning back via the neutral going down to the other switch.  This violates the intent of the 300.3(B)/310.10(H) prohibitions against current loops and paralleled wires which can create magnetic fields and ensuing eddy-current heating issues in your walls.
What to do instead
What you should do instead is run 14/3 from the two-gang switch box (fan + light switches) up to the fan box, and then use the 14/3 between the two switch boxes as as a 3-way switch spur consisting of two travelers and either an always-hot or a switched-hot as the &quot;return&quot; leg back to where it joins up in the two-gang switch box.  This removes the 14/2 going from the single-gang box up to the fan box, and gets rid of all the magnetic-field issues your original plan had.