[services-lib] Add is_valid_identifier function
Summary:
Part of ENG-3810.
Added a simple function to check if given string doesn't contain any invalid characters.
Test Plan: Unit tests.
Reviewers: jon, varun, michal, tomek
Reviewed By: jon
Subscribers: atul, ashoat
Differential Revision: https://phab.comm.dev/D8179