fix(simulation.cpp): wrap boost::regex_match with try-catch block