Launch Python script on a Host machine within HA

I’ve tried to whitelist my folder /home/max/yolov5-flask/
and it seems that HA doesn’t allow it. I receive the error
Not a directory @ data['allowlist_external_dirs'][1]
like here

Same error in case of whitelist_external_dirs:

Here’s the excerpt: