Then I did not actually write ripgrep in pure shell.
your example clearly has nothing to do with the OP's claims.
"Pure Python" ultimately means that it all runs within the python interpreter, with no dependencies on code that runs outside of the interpreter (standard library notwithstanding).