It's permissible to set a loc string to a raw text instead of a loc key. This is usually a bad habit because it means it can't be translated, but if the entire string is a single [ ] expression then it's acceptable. These expressions should be validated as datatype expressions.
The gui processing already has logic for this, but the script processing does not.