I suggest this, it gives the general idea that there is a lift gate.
https://www.openstreetmap.org/node/5664673222

I think routing will work fine:
* cyclists can be routed through the bypass
* cars cannot access a road highway=pedestrian anyway
* pedestrians should normally be allowed through → I will check in a couple of days, not sure if all routers work the same.