After switching to the new Google Analytics 4, Events are not being tracked anymore.
Here is the new snippet: