Hi, thanks for your question at Q&A.
You can get the ID of the current subscription as subscription().subscriptionId
in your Bicep code. You could compare that to the parameters you plan to create and then conditionally deploy the resources. See this documentation on conditional deployment.
To prevent code becoming overly complex by using this practice you could wrap resourcegroup scoped deployments as modules in a subscription scoped deployment where you conditionally deploy the modules. That way you can keep the code for the modules themselves tidy and simple.