, если он всегда находится в этом формате
key: val, key:val
, как вы показали, затем используйте explode
$str = "title:'this is the new title', msg:'this_is_updated', body:'this is the
new body text'";
foreach(explode(',', $str) as $val)
{
$item = explode(':', $val);
$array['customMessage'][trim($item[0])] = trim($item[1],"'");
}