After connecting use-mask-input, using controlled input (passing value/onChange controlled outside), the caret puts on the first character.
Tried to use useMemo to avoid re-rendering of Input component and set its state via ref, but nothing changed.
Here is how it behaves:

Repro project could be found here - https://stackblitz.com/edit/stackblitz-starters-hak8pb?file=app%2Finput.tsx
I think it could be considered as a bug.