From the documentation you can only access the default firestore database in storage rules.
Warning: Storage Rules can only access documents from the default Cloud Firestore database when multiple databases are active.