I reproduced the above scenario and got the file names in ADF.
AFAIK, in ADF we can get the file location from the dataset if we give the folder manually in the dataset. In this case we are not giving the folder name manually, so ADF pipeline cannot get the location of the file. You can get the file names from the 3rd level from Get Meta data activity.
Please follow the below process to get the file names in the 3rd level.
These are files storage structure:
inputroot(container)
market1
category1,2
csvin1.csv
market2
category3,4
csvin2.csv
market3
category5,6
csvin3.csv
Get Meta data activity doesn't have any wild card path option. So, create a dataset parameter and use that as wild card placeholder in the dataset.
In the Get Meta data activity, give the below value /*/*/ in the Dataset parameter and you can get the result like below.

Result filenames:

For both file name and path, the method that you have given above will be the solution for this if you want to do this only in ADF.
If you want to use other resource, you can try databricks. You can pass the result into ADF array variable.
Create a databricks Notebook and give the following code:
#Mount the Storage account
dbutils.fs.mount(
source = "wasbs://container@storageaccount.blob.core.windows.net",
mount_point = "/mnt/mountpoint",
extra_configs = {"fs.azure.account.key.storageaccount.blob.core.windows.net":"Storage account Account Key"})
#Get all file paths inside the container
import glob
ok=[]
ok = [{"path":i} for i in glob.iglob('/dbfs/mnt/mount3/**/*.csv',recursive=True)]
#print(ok)
#Pass this as JSON to ADF
import json
dbutils.notebook.exit(json.dumps(ok))
Drag a Databricks Notebook activity and create the linked service and give the Notebook.

When you execute the Notebook activity it will run the code like below.

You can see the above Notebook exited with a JSON. So, store that in ADF array variable with the below expression.
@activity('Databricks Notebook for file paths').output.runOutput

Result in Array variable with file locations :

Store the Meta data activity output in another array variable. Now, you can use these two variables further as per your requirement.