Revert "Merge pull request #10194 from pabloh/extract_regexp_at_generators_testing_assertion"

This reverts commit 81f243375b9d3cfd431c1ca904c5c1efc9a41ae8, reversing
changes made to c7673b0981d961e5510c85d958c944876d543314.