How to display custom token in custom block
Place the formatted text in a render element processed_text:

 $content = [
    '#type' =&gt; 'processed_text',
    '#text' =&gt; $config['my_field']['value'],
    '#format' =&gt; 'content_manager',
  ];

  return [
    '#theme' =&gt; 'simulator_block',
    '#content' =&gt; $content,
  ];


Configure the text format to include the token filter.