#3521 broke support as __cpp_lib_char8_t is only available after including standard header <version> or one of the other specified by the standard. It actually works for MSVC debug builds due to #3497.
My workaround is to include <version> before including pybind11.h