/file find name pattern

Hello. I’m using this script to sent me SMS on file created in mikrotik

:foreach i in=[/file find name~"SMS/"]  do={
/tool sms send usb3 "MyPhoneNumber" \ 
message=[/file get "$i" contents];
/file remove "$i"
}

my question is about this part

[/file find name~"SMS/"]

i want to set a pattern like

][/file find name~"SMS/*.sms"]



][/file find name~"SMS/~.sms"]

to filter file on also by extension. Can anyome help with that?

Also is that possible to get contents of file with Cyrillic character supporting ? maby file need to be on some specifin charset or something. For now when i try so sent Cyrillic message i get empty string