Link DLL from c++20 source

Noob here, evaluating UE4 or UE5 for a project.

I see that there are well defined ways to interface with DLLs you provide, but it’s unclear to me as a newcomer to C++ and UE whether or not there are requirements for the source of those DLLs (e.g. the source C++ must be C++14).

I’d like to author some of the more complex simulation logic for my project with C++20 and link the compiled DLL to a UE game project. Thoughts?