Exclude file links from spellchecking

Recently I’ve noticed, that links to local files (at least relative links) get underlined by spellchecker in contrast to external links, which are (correctly) ignored:

Screen Shot 2023-01-08 at 16.01.12

I’m not sure if this is a bug, but I think, both types of link should be excluded from spellchecking.