Yes, for sure when using regex blocks we can display the regex match so what it could say is:
You are not allowed to include the word
assassinin your post.
It is 100% correct even if the ban is for /ass.*/ .
It is super clear then what to do and how to correct it and does not risk leaking out an offensive word that was not in the post in the first-place.