Inverting extruder_stepper dir_pin from gcode macro

Looking for a way to invert extruder_stepper dir_pin from gcode command… currently I am making macros to sync extruder stepper to the extruder, extruder_stepper direction is tool dependent (T0&T1 in the same direction as the extruder, rest is in the opposite direction) then use SYNC_EXTRUDER_MOTION command to start the print with SYNC enabled

See G-Codes - Klipper documentation

Thank you…but I wanted to use Belay which changes the rotation distance to keep the 2 motors in sync, thus I am looking for another way

I cannot comment on 3rd party Klipper modifications