Is it Possible to Change "Edit Permissions" Based on a Field Value on that Node?
I think you can achieve this by implementing hook_node_access() with a check on the particular field.

https://forumone.com/ideas/programmatically-restricting-access-to-drupal-content has a very similar use case (except the field there is an entityreference field to users, but you get the gist)