Search results for ACF data

This worked for me:

<?php
 if($_GET['module_search'] && !empty($_GET['module_search']))
     $keywords = $_GET['module_search'];
?>

<!-- Set args for search of cpt -->
            <?php
                $args = array(
                    'post_type' => 'lectures',
                    'order' => 'ASC',
                    'posts_per_page' => -1,
                    'meta_query' => array(
                      'relation' => 'OR',
                         array( 
                         'key' => 'keywords', // name of custom field
                         'value' => '[[:<:]]'.$keywords.'[[:>:]]', // matches exaclty "123", not just 123. This prevents a match for "1234"
                         'compare' => 'REGEXP'
        )
    )
                    
                );
                $query = new WP_Query($args);?>```