JSFiddle - React, Tailwind, and code Playground
HTML
<form action="/action_page.php">
<label for="employee">Employee Name:</label>
<input type="text" id="employee" name="employee" pattern=".*([0-9]{6})$" title="Last Six Number"><br><br>
<input type="submit">
</form>