As advised in this document, custom domain names are still not supported for API Gateway. The best way for now to customize the domain of your gateway is to configure a load balancer then direct the request to the gateway.dev domain of your deployed API.
You can also consider searching for an existing feature request similar to this issue you encountered and Star it. If you don't see any matching issue or feature request, you can create one.