how to mount power strip to brick wall
3M Scotch outdoor mounting tape may be something that will work for you. I've seen photos of the product used for attaching to brick, although the current collection of ad copy does not mention it. I've used the product to hold outdoor items and it's quite durable and strong.
The tape is a foam core with adhesive on both sides, allowing for irregularities in the surface. If it's necessary to remove for any reason, the foam has to be cut with a blade or some have used dental floss or similar cording to saw the foam.
Many locations have this product, Home Depot included. Image courtesy of Home Depot.

If easier removal is required, 3M Dual Lock is a velcro-type fastener. The product is not hook-and-loop but rather is a set of plastic panels with super strong adhesive, containing mushroom-head stalks that interconnect for a quite strong attachment. It's a bit harder to find and a bit more expensive than the foam tape.