I'm not sure it is. I suspect it's intended as a genuine term of endearment and the author is oblivious to the negative connotation. Still unfortunate.
However, the author may genuinely not have noticed the sexist connotation until it was pointed out.