I am currently working on a flow that automatically creates a Sharpoint page and populates it for every item added to a list called "Departments." Everything that I have found online is pointing me towards this type of implementation when it comes to checking out my created page.

This does work, however, ID is not behaving as a consistent identifier for these pages. I have many other pages on my site so filtering by ID does not return the same page as the ID of my list items. For example:
The ID values alongside each item in my "Departments" list

The ID values alongside each page in my "Departments" pages folder

Is there a better way I can access these files programmatically? Maybe a way to gather them by Document ID or Title?