Maybe I don’t fully understand the problem, but
- Use a typescript iban validation library, at first sight this one looks good for example: GitHub - Simplify/ibantools: IBANTools is TypeScript/JavaScript library for validation, creation and extraction of IBAN, BBAN and BIC/SWIFT numbers.
- Use a CustomCondition to add the validation like discussed here: How to add CustomConditions