It's not a mould mikey4444.
What you've seen is a pool of Acetobacter bacteria on the surface of the vinegar with a limited quantity within the vinegar itself. The bacteria within the vinegar cause it to look turbid or cloudy and sometimes, discoloured. The surface pool of bacteria has been described as slimy or ropey in appearance. This is caused by the bacteria producing a cellulose-like substance during metabolism.
Acetic acid bacteria grow best at a temperature of 25-30 degrees C, so the vinegar may have been in a warm environment for a while with you. Some bacteria strains can grow at a pH of around 2.4, which is pretty acidic, and will survive in concentrations of up to about 13% by volume of acid to water. Your vinegar will probably be 5% which is well within these parameters.
Acetobacter bacteria grow best in the presence of ethanol. In fact, all good quality vinegars are made by inoculating wine with Acetobacter and other related bacteria. Sarsons do use wine in vinegar production and what you've seen in the vinegar is essentially a legacy of the vinegar production. Cheaper vinegars use different methods.
The Vinegar Mother is harmless and you would have come to no harm using it. In fact, it has a place in the treatment of certain gastrointestinal ulcers when mixed with sugar, but that's another story. I do apppreciate that it looked unsightly.
Many years ago, I cultured quite a few Vinegar Mothers in a uni lab and passed on the cultures to some staff who were interested in making vinegar at home. A good Vinegar Mother will last for years and can be used repeatedly to make high quality vinegar.