Extract HS codes from text while excluding specific digits using regex character classes and word boundaries.