Error creating custom pre_tokenizer

There may be a workaround.