JSFiddle - React, Tailwind, and code Playground

HTML

<form action="#">
    <input type="text" required pattern="/[!?^$\\\/{}]/g">
        <button type="submit">Submit</button>
</form>