The regex doesn't seem entirely accurate. There are some characters that we can't include in collection/database names, right? Might be better to just report an error and direct them to the documentation.