Access to host docker socket

Welcome to Docker Extensions!
OS: Ubuntu 2204
Docker: 24.0.2
Steps:
Mount host docker socket in config.json
Set permissions appropriately
Try to run docker inspect with a python client from the plugin code
Get Connection refused

Hello,
I have mounted host docker socket in config.json as a volume, and I’m trying to connect to it from plugin code.
In any case, I get Connection Refused, could you please tell what are the conditions allowing to connect to host socket?