GA4 events in Matomo Tag Manager

Hi

Anybody knows how to implement GA4 events?

I mainly want to use Matomo as a Google Tag Manager alternative.

Thanks!