Reads and consumes characters from regex string until a rightbracket is seen. Assembles them into a list (which is returned) ofcharacters, character ranges, like (:RANGE #\A #\E) for a-e, andtokens representing special character classes.