Trying to use variable to pass a view argument/parameter
the first you install module Twig Tweak

In file yourtheme.theme

/**
 * Implements hook_preprocess_HOOK() 
 */
function yourtheme_preprocess_node(&amp;$variables) {
  $terms=[];
  foreach($variables['node']-&gt;field_tags-&gt;getValue() as $term){
    $terms[] = $term['target_id'];
  }
  $variables['node_terms'] = implode(',',$terms);
}


In file node.html.twig

{{ drupal_view('custom_view','article_block',node_terms) }}


Config Views CONTEXTUAL FILTERS in your views