What is something snail-like hanging from your Betta by a spider web silk string?

this could be a parasite known as anchor worm. treatment for this dimilin and this is very hard to find and im sure its expensive. if not treated it could become infected and kill your fish. signs of infection is a deep purple sorta like a blue. but it will be hard to tell if your betta is somewhere close to that color.