Java 21, Gradle 9.5.0
As it was said in the task, I tried to do as simple code as I could, given the requirements.
It is also a library, so there is no Main method to run the code, only the tests shows if the contract was fulfilled.
My main focus was to fully test the code, and find as much edge cases as I could. Tests check that the match can only have different teams playing, without any special characters and that the requirements of the library were fulfilled.