Pus from breast?

I got out the shower this evening and noticed something on my nipple, on further investigation it like a thick greenish yellow. I haven’t breastfed for 18 months, the past week or so breasts have been tender but I have never seen anything like this before? If I squeeze more comes out, kind of like popping a spot. Any ideas what it may be?