Text this: Detecting significant expression patterns in single-cell and spatial transcriptomics with a flexible computational approach