I had similar issue on Mac M1 Pro, tried several things and nothing worked, have run otool -L /opt/homebrew/lib/libmsodbcsql.18.dylib identified that path /opt/homebrew/lib/libodbcinst.2.dylib doesn't exist, created symlink pointing to actual path of libodbcinst.2.dylib, this resolved my issue.