Find an in the wall motion switch that requires no neutral. Then you should be good. Like this...
https://www.amazon.com/Leviton-DOS05-1LZ-Decora-Motion-Sensor/dp/B08YMDHCX2/ref=psdc_6291358011_t3_B0007N72P6