Expo router uses file-based routing, and I don't think you can programmatically ignore routes like this. It looks like you're trying to implement an authentication flow, and you can take a look at this: https://docs.expo.dev/router/advanced/authentication/.
You can also use protected routes: https://docs.expo.dev/router/advanced/protected/, but this is only supported in SDK 53.