The edge of the belly button probably died and now it is healing by scar. It is normal that this process takes several weeks. I don't see any infection now at least on the photo. Please consult your plastic surgeon for follow up.
These answers are for educational purposes and should not be relied upon as
a substitute for medical advice you may receive from your physician. If you
have a medical emergency, please call 911. These answers do not constitute
or initiate a patient/doctor relationship.