so if the link goes to foo.com but this function extracts bar.com from the text of the link, then it would show a warning. i don't think it would warn if it's just an external link with "bar" as text.
github.com/bluesky-social...
If you have a fediverse account, you can quote this note from your own instance. Search https://bsky.brid.gy/convert/ap/at://did:plc:fpruhuo22xkm5o7ttr2ktxdo/app.bsky.feed.post/3meahnrx7vc2l on your instance and quote it. (Note that quoting is not supported in Mastodon.)
