Use the `pattern` attribute to use a regular expression to validate the input.

```html
<div class="max-w-[400px]">
  <sd-input label="Pattern" pattern="[A-Za-z]{3,}" help-text="Required pattern is [A-Za-z]{3,}" required></sd-input>
</div>
```
