You could try:
<?php
$pattern = '/\[(.*?)\]/';
$subject = "Re: [3-8-ZIB8TPY0] - Reply to your test: Tito's Test";
if (preg_match($pattern, $subject, $matches)) {
echo $matches[1];
}
?>
However, if there was some fixed format, it would be better to make the regex pattern match that format.