I was getting issues with flipping on wall jumping and i saw that on the code some time we fliped with localscale -1 : 1, and other with eulerAngles 0 : 180, so i change the flip() for eulerAngles instead of localscale.
and with this it work perfectly,better than before, but i need to do some ajustments on bias, i saw a very good videos about camera movements of hollow knight, and if you can create new chapter like, upgrading camera movement, it will be awsome:
the video of the camera:
https://www.youtube.com/watch?v=9dzBrLUIF8g