The Salesforce step uses a standard REST API path which is: /services/data/v52.0
To invoke a custom REST API on Salesforce, you will need to add the Salesforce Apex step in the flow as shown below.
You first need to add a connection to Salesforce and then select the connection.
In the Apex Path, you can add any query string parameter/ any path but you must exclude the base URL of that path.
You will only put in the path that is after the base URL and start with a forward slash as shown below.
eg. URL path: https://instanceName.my.salesforce.com/services/apexrestcall
Path you will put: /apexrestcall
This will allow you to access the customized service that you connected to.