Filter on the_content doesn’t update the content being searched via register_rest_route

Filter on the_content doesn’t update the content being searched via register_rest_route