st. switch_page error: could not find page

Hi,
I keep getting this error when the switch_page model is meant to run:

streamlit.errors.StreamlitAPIException : Could not find page: pages/test.py . Must be the file path relative to the main script, from the directory: job-matching-system . Only the main app file and files in the pages/ directory are supported.

the path, i have tried copying the path, in different ways. I have used forward and backwards slash. I have checked multiple times that they have the same directory:

This is how it is called on the script:
image

I don’t know what else to try. Any help is appreciated. Thank you.
Python Version: 3.13
Streamlit Version: 1.46.1