Cyberpunk 2077's first act is action-packed, and in a mission called "The Pickup", you'll be tasked with freeing Brick (if he's still alive, that is).
Here's how to get him out, including how to disarm the trap afterwards.
Cyberpunk 2077: How To Free Brick And Disarm Trap
When you're escaping All Foods during the mission, Brick will be held in a room nearby. The objective appears when you're close to the door, but you'll need to use scanner mode to open it. Scan the door terminal and select "Remote Deactivation" to open it up so you can rescue him.
Unfortunately, Brick is tied up to a mine that'll blow him sky-high if he moves. If you've put enough attributes into your Technical Ability stats, you can simply disarm it. Failing that, the detonator is in an adjacent room and you can disarm it from there (or blow him to smithereens if you'd like). Provided you're feeling merciful, Brick is now free.
For more on Cyberpunk 2077, we've got the solution to one of the early game's most challenging Braindance missions.