> Douglas DrumondGDG Campinas
I actually figured it out. It had an extended attribute that was causing the issue.
I used xattr to find out that
com.apple.quarantine
was set.
Once I deleted it with the xattr -d <attribute> <filename> or xattr -c <filename> to delete or clear all the extended attributes respectively the issue disappeared.