In the case of a search and replace where the search subject is not a regex, it can be optimized for a simple SQL query.
This improves greatly the speed since does not need for every element of the query call the python regex evaluator code.
Example:
!s/ test / teste2 /2