It sounds like what you have are planaria. They are not parasites but free living worms that survive in high organic waste. Your fish may have perished for some other reason. If planaria are present you may have to increase your water change regimen or tank cleaning technique. In planted tanks it is important to remove all the detritis between plants when doing water changes.