Why isn't `http://localhost:PORT` a valid URL?

Why this url: http://localhost:9093/ is not valid?

In [9]: validators.url("http://localhost:9093/")
Out[9]: ValidationFailure(func=url, args={'value': 'http://localhost:9093/'})

I'm using validatos 0.21.2 in python 3.11.4