is the lever itself bust or just the sensor, the sensor can be replaced.. if the mechanical lever, you may need to replace with a new pair if you want to maintain a matching look.
If its a style issue you could buy off the shelf non sensored levers and apply a magnetic
hall sensor for hydraulic brake upgrades.
afaik 3 wire sensors employ magnetic sensitive hall sensors while 2 wire variants employ reed switches, Both afaik will ground the signal wire on 'activation' so as long as you connect just the ground and signal wires to a 2 wire sensor it might be worth a punt if no other option can be found. ( my own quick search on the usual portal site turned up lots of 2 wire hydraulic ebike levers..
If the sensor recess is the same could you refit a hall sensor into a reed sensor supplied lever??