I've never seen anything "gooey" come out of a male or a female. If it were MY snake, I'd be taking it to a vet for peace of mind.
By the way, snakes don't as a rule get "pus" infections, so it wouldn't surprised me that if it's an infection it doesn't look like pus.
The female that I have popped out dried matter, not gooey matter.
My males will re-develop sperm plugs that come out dry, not gooey either.