Codeberg is hosted in Germany, which is part of the World Intellectual Property Organization Treaty, meaning they have very similar laws to the DMCA. The EU itself has the Copyright Directive.
You may want to look at Codeberg’s Terms of Service again, particularly the subsection on allowed content and copyright:
https://codeberg.org/Codeberg/org/src/branch/main/TermsOfUse...