How to set a general mimetype rule in xdg.mime?

Is there a way to set a general xdg.mime rule for a format family e.g. text, I don’t know why but libreoffice writer somehow registered itself for all text types and it’s VERY annoying to have writer open json, py, c, as a default

I expected sth like “text/*” or “text” to work, but I think the actual solution is setting "text/plain", it worked perfectly for me