Found an answer while writing the question.
It seems the limitation is in the input mask guide, and not in the database itself. By manually entering the input mask >AAAAAAAA-AAAA-AAAA-AAAA-AAAAAAAAAAAA;; directly in the field properties instead of using the guide it works.