javascript – Allow polish and other letters in url using Joi

i try to configure google function with Joi to allow users send linkedin account url,
my schema looks like:

const schema = Joi.object().keys({
  firstName: Joi.string().required(),
  ...
  linkedInUrl: Joi.string()
    .uri({
      allowRelative: true,
    })
.optional()
.allow("")
...linkedInUrl: Joi.string()
    .uri({
      allowRelative: true,
    })
.optional
.allow(""),
...

It works fine with regular symbols a-zA-Z0-9 but returns to me the next error message: '"linkedInUrl" must be a valid uri' when url contains ą`, `ę`, `ä and the similar symbols,
i tried to use

.regex(
      /(www)?(.(-a-zA-Z))?(.)?(linkedin.com/in/)b((-a-zA-Z0-9()@:%_+.~#?&//=)*)/
    )

but it didn’t work, plase tell me how can i fix it ?