I don't think the solution is simpler than this:
val s = "abc=123,def=456,ghi=789"
val map = s.split(",").associate {
val (left, right) = it.split("=")
left to right.toInt()
}
Or, if you need it HashMap, use it .associateTo(HashMap()) { ... }.
Some information: