const pattern = /^hand(\w|-|@)*(s|y|le)$/i
const array = ['handOn', 'hands', 'hanDLes', 'Handcuffs', 'handmade', 'in-hands', 'HANDINGLY'];
const res = array.filter(item => pattern.test(item))
console.log(res)
Y29uc3QgcGF0dGVybiA9IC9eaGFuZChcd3wtfEApKihzfHl8bGUpJC9pCmNvbnN0IGFycmF5ID0gWydoYW5kT24nLCAnaGFuZHMnLCAnaGFuRExlcycsICdIYW5kY3VmZnMnLCAnaGFuZG1hZGUnLCAnaW4taGFuZHMnLCAnSEFORElOR0xZJ107CmNvbnN0IHJlcyA9IGFycmF5LmZpbHRlcihpdGVtID0+IHBhdHRlcm4udGVzdChpdGVtKSkKY29uc29sZS5sb2cocmVzKQ==