Now you can use (php):
if( \Drupal::routeMatch()->getRouteName() == 'entity.node.canonical' ){ /*CONDITON if node page*/ return $result = str_replace($matches[1], $matches[1] . 'PlusText', $matches[0]); /*you custom code here*/ } else return $result = $matches[0]; /*no changes*/