I am not sure. Is it because the previous result was obtain from quantum mechanics, while this toy model is considered classically?
In classical electrostatics, if we add a negative charge between two positive charges, the energy will decrease.
In that quantum formula, the electron density in the center is negative, and there is a negative sign before that term, so the whole contribution is positive.
Is this the reason?