The hose diameters (inner and outer diameter) differ between different brands of hydraulic brakes. When choosing a lever you need to make sure the olive/insert (the parts you install on the end of the hydraulic hose in order to create a seal at the lever) are suitable for the (diameters of the) hydraulic hose that is currently installed on your brake caliper.
I've found the following sized for different brands: (ID=inner diameter, OD=outer diameter)
Here is an overview of the different hose sizes per brand :
Shimano (BH90) + Avid + Formula + Sram:
ID: 2.1mm , OD: 5mm
Shimano (BH59) + Magura MT:
ID: 2.3mm , OD: 5mm
Tektro/Hayes/Promax:
ID: 2.5mm, OD: 5.4-5.5mm
From what I've found online Sram, Avid and Shimano BH90 (shimano hoses come in two versions/sizes IIRC, BH90 and BH59) use the same size (ID/OD) hydraulic brake hose.
This means you should be able to use any lever suited for flat bars from Avid/Sram (as long as they do indeed use ID = 2.1mm and OD = 5mm hydraulic hose (there might be some exceptions)) and all shimano brakes which use BH90 hydraulic hose.
If you use a hydraulic hose which is not the correct sizing (ID/OD) you have a high risk of the brake leaking.. so I would advise against this.
To get a similar 'lever feel' to your original brifters you'll need a new brake lever which has approximately the same mechanical advantage.. (advantage due to brake lever arm itself and advantage due to different piston size in lever and caliper).
You'd be best off sending Sram an email regarding this I think since this info (especially hydraulic piston size) isn't readily available for most brake levers (in my experience).
There are examples online of people mixing and matching different brands of shifters/levers together, I don't have any personal experience with this yet..
Example: