It seems that using functionalities of the <regex> header, makes the program crash without even starting to run.
I have created a minimal program to reproduce this issue:
https://gist.github.com/hcfcoder/9d3eb3212ce39bccd5dac95edf097d5a
Basically, adding these 2 codelines makes the program not able to start:
#include <regex>
static std::regex includeRegex = std::regex("\s*#include\s+([\\/A-Za-z0-9\-\.]+)");
I hope this helps.