After a discussion with Epic engineer, this will be fixed in 5.8. Python scripts will have the option to be set as an Editor-only script. This will prevent the Asset Reference Restriction module from triggering.
For now, it is safe to ignore the error.