Windows Forbidden Characters:
< (less than) > (greater than) : (colon - sometimes works, but is actually NTFS Alternate Data Streams) " (double quote) / (forward slash) \ (backslash) | (vertical bar or pipe) ? (question mark) * (asterisk)
This is not an exhaustive list of special characters on windows as some otherwise valid file paths are forbidden as well. You can find more information is here.
Mac and Linux Special Characters
/ (forward slash)
How Drive works with forbidden characters
Google Drive does not have any forbidden characters! All files will always appear in the Drive web interface, no matter their name.
How Drive File Stream works with forbidden characters
Files containing special characters will not appear in Drive File Stream on Windows, and will not sync into Google Drive.
Macs may work with files or folders containing a forward slash, but saving or syncing may be inconsistent, and you may not be able to see the forward slashes in the filename.