This is purposeful behaviour, $fline() strips out control codes before performing a text match to make it easier to match against plain text, the same as with /findtext and Control+F, which is usually more useful.