Cambio de regex antes del último valor de punto

var str = 'esolri.gbn43sh.earbnf'
console.log(
  str.slice(str.lastIndexOf('.') + 1)
)
Ill Ibis