Using Allowed_groups with Generic Oauth

I am trying to integrate generic Oauth and use the Allowed_groups attribute to restrict access.
My id_token has a momber_of attribute which I am reading using groups_attribute_path.

I am using docker to run grafana image: grafana/grafana:10.0.1

The documentation shows that allowed_groups is available to use with generic oauth but it dosent get picket up when I do this

  - GF_AUTH_GENERIC_OAUTH_ALLOWED_GROUPS=group
  - GF_AUTH_GENERIC_OAUTH_GROUPS_ATTRIBUTE_PATH=member_of

Looking at grafana logs and the settings, group_attribute_path is getting picked up but allowed_groups is not getting picked up and neither does it exist in the settings page of the GUI