It works perfectly. Thank you so much for saving meYour BJT is trying to regulate by shunting the excess current to ground which will cause high current and power dissipation.
You need to put the BJT in series with the output with the emitter towards the battery and the Zener connected from the base to ground.
The emitter output voltage to the battery would then be about 0.7V greater than the Zener voltage.
You would also need a base current bias resistor between the collector and emitter to provide the necessary base and Zener current.
Sample circuit below:
You need to calculate the value of R1 to give a nominal Zener current of perhaps 5mA and a base current which is the maximum charging current divided by the minimum current gain (beta or hFE) of the transistor you are using.
You can do that using Ohm's Law, Using the Pwr and D1 voltages to give the voltage across R1.
View attachment 237327