Strange result of get_stylesheet_directory()

Backslash is the default used on Windows OS to define paths.

The foward slash is the default in Apache’s config on Xampp (at least it always have benn like that on mine).

Since Windows accept both, you have a mix of them. But that won’t do any harm to your WordPress project.

And it will be correct when you migrate to a server since you are using the ‘get_stylesheet_directory()’.