The default search functionality in WooCommerce doesn’t search by SKU. Our functionality enable this feature for default search fields (not available for ajax search widget).
To enable/disable it go to Customizer – WooCommerce – Header(Cart, My Account & Search) – Search – Search in SKU