Always carry a fireplace with you on swamp/caves. to get reed of a leech you have to light the fireplace and step on it for a few seconds until the leech symbol on the bottom right disappears
Leech

Player-written tips for taming, using, and fighting the Leech in ARK: Survival Ascended & Evolved.