Given an extension 0→V→G→Q→10→V→G→Q→1 of locally compact groups, with VV abelian, and a compatible essentially bijective 11-cocycle η:Q→ˆVη:Q→ˆV, we define a dual unitary 22-cocycle on GG and show that the associated deformation of Ĝ is a cocycle bicrossed product defined by a matched pair of subgroups of Q⋉ˆV. We also discuss an interpretation of our construction from the point of view of Kac cohomology for matched pairs. Our setup generalizes that of Etingof and Gelaki for finite groups and its extension due to Ben David and Ginosar, as well as our earlier work on locally compact groups satisfying the dual orbit condition. In particular, we get a locally compact quantum group from every involutive nondegenerate set-theoretical solution of the Yang–Baxter equation, or more generally, from every brace structure. On the technical side, the key new points are constructions of an irreducible projective representation of G on L2(Q) and a unitary quantization map L2(G)→HS(L2(Q)) of Kohn–Nirenberg type.