JSFiddle - React, Tailwind, and code Playground
HTML
<input>
JavaScript
$("input").keyup(function() {
this.value = this.value.replace(/[^а-я0-9.,!?'"\s]/i, "");
});
<input>
$("input").keyup(function() {
this.value = this.value.replace(/[^а-я0-9.,!?'"\s]/i, "");
});