pub fn ranges_overlap(range: Range, position: Position) -> bool
Checks if a position overlaps with a range (inclusive start, exclusive end).