Twig + wordpress – how to get filemtime for style.css

You could simply use Twig’s date filter to append the current Unix timestamp via {{ 'now'|date('U') }} or {{ date().format('U') }}.

<link rel="stylesheet" href="https://wordpress.stackexchange.com/questions/333974/{{ site.theme.uri }}/dist/css/style.min.css?ver={{"now'|date('U') }}" />