Yes, you should have no restrictions when it comes to carrying hearing aid batteries on a plane. The one thing that is important to remember is that each airline or airport can have different requirements for electronic devices and power supplies. These requirements can vary depending on the agency, country, airline, equipment, and year.
There’s also the fact that ear technology changes every year and that adds another variable to the formula. The best thing you can do to ensure that you don’t run into any problem is to consult the guidelines of the airport or airline that you intend to use.