A directory name can contain / character, but this leads to an issue with the REST API that cannot work with / in directory name.
Log a warning when registering a directory name containing / saying that it is deprecated and it won't work with the REST API.
Developpers should change their contributions to not rely on /.
Studio already limits special character to _ and - when creating vocabularies.