@jkudave you can try the latest version of the Matter Advanced Bridge, which brings the experimental/test support of Matter lock codes.
As this thread is about the Built-in Apps and Drivers category, please follow up on the MAB thread if you decide to test it.
Note, that the inbuilt ‘Generic Matter Lock’ driver and the MAB drivers are not compatible, so switching to the MAB will create a new child device, and you will have to edit your existing rules, apps and dashboards.