The usual solution is to carve out a bunch of exceptions. These exceptions tend to be incomplete and don't evolved with the times.
A far better solution is to just tax the ICEs that drive these things. Make it so that for most mundane uses, the electric ones will be cheaper. But the people who really need them can get them without mounting a lobbying campaign at the politicians.