JUNIT 5 Automatic Extension Registration | How to create Extensions file inside META-INF/services folder and what is the folder structure?

In a standard Maven project service registrations are in folder

/src/main/resources/META-INF/services

So you'd have a file in this directory called org.junit.jupiter.api.extension.Extension with content:

your.project.junit5.extension.ExtensionImplementation

The class my.project.junit5.extension.ExtensionImplementation must be an implementation of one or more of JUnit-Jupiter's extension hooks.

But that's for global extensions only. The different kinds of Jupiter extensions are described here: https://junit.org/junit5/docs/snapshot/user-guide/#extensions