You do not configure NAT by using routing tables/custom routes (at least not directly). Instead, you need to configure the Security settings of the subnet, as described in https://learn.microsoft.com/en-us/azure/nat-gateway/quickstart-create-nat-gateway-portal
If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.
hth
Marcin