I think you got that part wrong, if you are referencing this part:
Directory structure
For example, if all the code in the project is in the org.example.kotlin package and its subpackages, files with the org.example.kotlin package should be placed directly under the source root, and files in org.example.kotlin.network.socket should be in the network/socket subdirectory of the source root.
I would recommend
https://ktlint.github.io/ to avoid such issues