Text this: Learning tissue representation by identification of persistent local patterns in spatial omics data