Until the underlying integration updates to enabling the new Event entities, you will need to use the Event tool in the Developer tools to listen for the event to gather the necessary event data.
Go to Settings > Devices & Services > Devices > whatever device represents your Flex Sensor
When the device’s details ate displayed, click the + icon next to Automations. It should display a list of everything that can be triggered for this device.