Error accessing remote module registry

Hello,

when using a published module from a self-hosted GitLab Infrastructure Registry, the following error message is displayed:

│ Error: Error accessing remote module registry
│ 
│ Failed to retrieve available versions for module "test" (main.tf:1) from
│ xxx: host does not provide a modules service.

It seems the /.well-known/terraform.json file is not available at all on our GitLab instance, which could explain the error message. Is there any way to fix this issue?