This CharacterBody3D is supposed to move forward on its local Z axis, but moves up and backwards after pitching up. This happens with both translate_object_local(+transform.basis.z)
and translate(+transform.basis.z)
One thing to keep in mind the Forward direction is negative in 3D space and the transform.basis.z is positive when pointing in the Forward z direction.