Topic: [Bug] End parentheses considered part of URL when followed by certain characters

In DText links, ) are only considered part of a URL if a ( was found previously in that URL, preventing URLs inside parentheses from being mangled. However, if another character is included immediately after that ), it instead considers the ) part of the URL.

These characters simply cause the ) to become part of the URL:

test!
test.
test,
test;
test

Additionally, these characters are even weirder, considering both the ) and the next character part of the URL, but then printing the ) afterward:

test:
test
test
test
test
test
test

Expected output for all of those is that neither the ) or the next character are part of the URL, instead being printed afterward in plain text.

With only whitespace after the ), it works as expected:

See?)

Updated