I have create an issue 17513 for this request in Bicep repo, so I am marking this as complete for now.
But as @developer said in the comments, it could be possible via DevOps pipeline or something similar, but not fully as Bicep.