What do you think about using strings.ContainsAny(key, ":\x00") (in place of the serial checks) ?