function replaceToRestoreNonJSONValues(_key, value) {

    // Restore the values JSON cannot handle.
    if (typeof value === "string") {
        if (value.startsWith(Prefix.number)) {
            return Number(value.slice(Prefix.number.length));
        }
        if (value.startsWith(Prefix.bigint)) {
            return BigInt(value.slice(Prefix.bigint.length, -1));
        }
        if (value.startsWith(Prefix.RegExp)) {
            const regexpString = value.slice(Prefix.RegExp.length);
            const i = regexpString.lastIndexOf("/");
            const pattern = regexpString.slice(1, i);
            const flags = regexpString.slice(i + 1);

            return new RegExp(pattern, flags);
        }
    }

    return value;
}
Replace the values that the `replaceToSaveNonJSONValues` function replaced by the original values.
@param {string} _key The key to replace.
@param {any} value The value to replace.
@returns {any} If `value` parameter is a replaced value, returns the restored
value. Otherwise, returns `value` parameter as is.
@private