<?php

error_reporting(-1);

$regexp = '/д[ ]?[yу][ ]?[рp][ ]?[aа][ ]?[kк]/ui';
$text = "ты Д у р A к";

$text = preg_replace($regexp, 'хороший человек', $text);

echo $text;