How can I print a referenced media extension
{% set extension = node.field_event.entity.filemime.value|split('/') %}
{% set extensionDot = '.' ~ extension[1] %}


// File name
{{ node.field_event.entity.filename.value|replace({extensionDot : ''}) }}

// File size
{{ node.field_event.entity.filesize.value / 1000|round }}KB

// File extension
{{ extension[1] }}