I've seen people who use testcontainers and run their CI workloads in containers abusing the docker.sock mounting so they can spin up the tests.
The anti-pattern of using docker.sock has been always a threat because when docker got popularity in CI/CD systems it was the easiest way to have a platform independent way to spin up isolated environments. In my perception, this was a very common pattern in Jenkins a few years ago.