We never use $s, please use ${s}. Moreover, the message is not really clear. Could you use:
"Error when trying to read the following serialized Rule target as a composite target (other case where not relevant): '${s}'. Reported parsing error cause was: ${e.getMessage}"