I replaced the no name brake calipers on an entry-level ebike for Shimano BR-M375. The cable housing for the rear caliper was a bit too long, so I cut off a few centimeters. Then, I put a new 5 mm end cap just to realize that it would not fit into the caliper's barrel adjuster. The old end cap is a bit smaller and fits in it (and fits in the old calipers as well). There are also grooves in it like the ones that could have been made by some sort of crimp tools.
What kind of end caps should be used with the BR-M375? I am also curious about the old end cap and what has been used to crimp it.
BR-M375 barrel adjuster
Old end cap (left), New standard 5 mm end cap (right)
Old end cap (left), New standard 5 mm end cap (right)