We propose the use of non-equally spaced decoupling pulses for high-resolution selective addressing of nuclear spins by a quantum sensor. The analytical model of the basic operating principle is supplemented by detailed numerical studies that demonstrate the high degree of selectivity and the robustness against static and dynamic control field errors of this scheme. We exemplify our protocol with an NV center-based sensor to demonstrate that it enables the identification of individual nuclear spins that form part of a large spin ensemble.