That’s what I meant. You can’t create fields that are not in a field group. If the field was nested in another field, like a repeater for example, that might have been a cause of the issue.
If you don’t mind, can you put your entire plugin in a .zip file and attach it, or possibly create a github repo for it so I can take a closer look.