scanner: use 'extract_regex_objs' from swh.model
Since the function extract_regex_objs
was moved to swh.model.from_disk
the scanner should use the one in the model
in order to remove the duplicate code between the two.
Tests changed according to the new function.
Fixes #2679 (closed)
Migrated from D5359 (view on Phabricator)