Exclude filtering on certain pages

<?php

add_filter( 'facetwp_is_main_query', function( $is_main_query, $query ) {
    $excluded_uris = [ 'shop', 'some_other/page' ];

    if ( in_array( FWP()->helper->get_uri(), $excluded_uris ) ) {
        $is_main_query = false;
    }
    return $is_main_query;
}, 10, 2 );