Byte Pair Encoding (BPE) Tokenizer from Scratch | Custom GPT-style tokenizer with regex, comparison with tiktoken (GPT-4)