It looks like this might be the reason why the META-INF/TestList is not created in JDK 23.
META-INF/TestList
After explicitly enabling the annotation processing like this, the issue was resolved.