Text this: RL-aided cognitive ISAC: robust detection and sensing–communication trade-offs