E-bike cable tourism is notorious for friction, it’s worth checking. You also should check hanger for alignment, a new hanger is not the same as a properly aligned hanger, and often the hanger will need tweaking to account for frame tolerances etc. set is up is right, things aren’t worn, and the hanger is straight, then cable routing is next stop.