JSFiddle - React, Tailwind, and code Playground

HTML

<input pattern="^[^\/:*\?\u0022<>|]+$">

CSS

:invalid {
    border: 1px solid red;
}