I have the same problem on Ender-3 Max and found the fix in this thread: Ender 3 Max 4.2.2 with Bltouch Filament sensor is reversed
However, swapping wires results in the LED indicator in the filament sensor no longer working, and it’s a surface mount LED, so I will have to do without the LED I suppose.