Don't need the `to_s` here:

````ruby
"Cannot reliably check exploitability." =~ /#{Msf::Exploit::CheckCode::Unknown[1]}/ # => 0
````