Always better to construct this using the previously define static constant:

    public static final String NAME_SEPARATOR_REGEX = "\\" + NAME_SEPARATOR;