Modify error message about an invalid scope name to distinguish between nested scopes and scopes in the root, and include the actual regex.
Modify error message about an invalid scope name to distinguish between nested scopes and scopes in the root, and include the actual regex.

PiperOrigin-RevId: 392290054

keras-team/keras,keras-team/keras