Hi,
There is no option to dynamically apply modifications to the texts being searched.
What you need to do is to create a custom field of the table "product" and of the type "text" or "textarea" where you can enter the product code without the dashes. Then, in your filter, also select that custom field and you'll find results for the product code without the dashes.
And you can also create a mass action to automatically fill the custom field with the product_code without the dashes with a mass action of the type "update the values" on the column of the custom field with the "operation" mode and the value:
replace({product.product_code},'-','')
(not tested)