HTML in table cell being escaped
The answer (that worked for me) is to use FormattableMarkup:

use Drupal\Component\Render\FormattableMarkup;

$row[] = new FormattableMarkup('&lt;span&gt;@somevalue&lt;/span&gt;', ['@somevalue' =&gt; 'some value']);