If `tag` has regex special characters, like a dot or a dash are they escaped here? Any reason not to do a substring check instead? If we chomp the line, then I think we could just do `line.chomp == tag`?