This solution using powershell and CIM tested successfully on a 2019 Server Gateway system. Please give it a try after you have successfully installed the gateway feature.
$config = Get-CimInstance -ClassName Win32_TSGatewayServerSettings -Namespace "root\cimv2\terminalservices"
Invoke-CimMethod -MethodName "EnableTransport" -Arguments @{TransportType=[uint16]2;enable=$false} -InputObject $config
Additional methods for configuration can be found at this link: https://learn.microsoft.com/en-us/windows/win32/termserv/win32-tsgatewayserversettings