Plugin Working in Local Instance, Breaking on Deployed

I’m not sure if this would help but it seems like the issue might be that the custom field isn’t being set up properly when creating a post.

Make sure you’re assigning a default value to the field when the composer opens.

You could also try disabling your regex filter temporarily to check if it’s causing any validation problems. Lastly, double-check that the custom field is actually being included in the data sent during the initial save.