The name of the package I just built is @nagisa~/node-red-dsmr. Running node-red-dev/bin/run validate reports:
› Warning: P04 New Packages should use a scoped name
✅ Package uses a valid name
If I remove the trailing tilde from the scope, then the lint works correctly.
Interestingly the flows.node-red.org page does not flag the package name in a similar way.