I am not rich enough to buy my vinegar in glass containers; where I live it’s all sold in plastic except for small volumes of specialty culinary vinegars. That said, plastics vary; the composition of a soda bottle or a vinegar bottle differ, so even if vinegar-in-plastic is safe (not proven) vinegar-in-soda-bottle might not be.
I respect in general the desire to keep foods out of plastic but my own level of concern there is not high. Still, I would not pickle in soda bottles for a different reason: glass is so much better! And it’s not like there aren’t plenty of glass jars in dire need of recycling use.
In general I am phasing all plastic containers (and items in general) out of my kitchen and pantry, replacing them as garage sales and
scrounging allows with jars, cannisters, and containers of glass, ceramic, crockery, and stainless steel. My philosophy has come to be that if I repurpose a crappy shoddy thing for temporary use, then in six months I have a trash item again, and what’s the gain? But if I rescue a solid thing from someone else’s waste stream that will last forever that is functional and pleasing to own and handle, somebody will rescue THAT from my estate sale.
By this standard, a cut-off soda bottle leaking smelly garlic-vinegar into my fridge is not worth owning. What matter that I used it one more time before it hit the landfill? But a 50-year-old Atlas canning jar with wire bail that I got at a garage sail for a buck, or a half-gallon glass Vlasic pickle jar with a pretty blue steel lid that I bought with pickles in it, those I will have for a lifetime.