The Forgejo domains are in the custody of Codeberg e.V. a non-profit based in Germany and dedicated to hosting Free Software projects since 2019. It is ultimately in control of Forgejo and its bylaws guarantee it will keep further the interest of the general public. No trademark was registered at this point in time.
In fact, they are the owners: https://forgejo.org/faq/#who-owns-the-forgejo-domains-and-trademarks