Dear Carlos Danilo Angarita Garcia,
Let's consider that you have created the first object with k001 in an attribute, now use a before commit microflow and retrieve the first object using attribute set to descending order. Now change the attribute of new object using 'k' + toString(parseInteger(replace($retrivedobject, 'k', '')) + 1).
Hope my answer helps, reach me out for any queries.