function validateFlowString(flowString) {
        const res = JSON.parse(flowString)
        if (!Array.isArray(res)) {
            throw new Error(RED._("clipboard.import.errors.notArray"));
        }
        for (let i = 0; i < res.length; i++) {
            if (typeof res[i] !== "object") {
                throw new Error(RED._("clipboard.import.errors.itemNotObject",{index:i}));
            }
            if (!Object.hasOwn(res[i], 'id')) {
                throw new Error(RED._("clipboard.import.errors.missingId",{index:i}));
            }
            if (!Object.hasOwn(res[i], 'type')) {
                throw new Error(RED._("clipboard.import.errors.missingType",{index:i}));
            }
        }
        return res
    }
Validates if the provided string looks like valid flow json
@param {string} flowString the string to validate
@returns If valid, returns the node array